Revert "remove less and less-loader"

This reverts commit d39db511e5.
master
Will Roberts 8 years ago
parent aecf38debc
commit ba03230789
  1. 2
      {{cookiecutter.app_name}}/package.json
  2. 1
      {{cookiecutter.app_name}}/webpack.config.js

@ -39,6 +39,8 @@
"extract-text-webpack-plugin": "^2.1.2", "extract-text-webpack-plugin": "^2.1.2",
"file-loader": "^0.11.2", "file-loader": "^0.11.2",
"font-awesome-webpack": "0.0.5-beta.2", "font-awesome-webpack": "0.0.5-beta.2",
"less": "^2.7.2",
"less-loader": "^4.0.4",
"manifest-revision-webpack-plugin": "^0.4.0", "manifest-revision-webpack-plugin": "^0.4.0",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"style-loader": "^0.18.2", "style-loader": "^0.18.2",

@ -41,6 +41,7 @@ module.exports = {
module: { module: {
loaders: [ loaders: [
{ test: /\.html$/, loader: 'raw-loader' }, { test: /\.html$/, loader: 'raw-loader' },
{ test: /\.less$/, loader: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader!less-loader' }) },
{ test: /\.css$/, loader: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader' }) }, { test: /\.css$/, loader: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader' }) },
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' }, { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' },
{ test: /\.(ttf|eot|svg|png|jpe?g|gif|ico)(\?.*)?$/i, { test: /\.(ttf|eot|svg|png|jpe?g|gif|ico)(\?.*)?$/i,

Loading…
Cancel
Save