From ba03230789f6390a2df5a5836c891102873ea5a7 Mon Sep 17 00:00:00 2001 From: Will Roberts Date: Thu, 22 Jun 2017 12:00:39 +0200 Subject: [PATCH] Revert "remove less and less-loader" This reverts commit d39db511e5b41ce7957650c09a3c6404e5d40a7a. --- {{cookiecutter.app_name}}/package.json | 2 ++ {{cookiecutter.app_name}}/webpack.config.js | 1 + 2 files changed, 3 insertions(+) diff --git a/{{cookiecutter.app_name}}/package.json b/{{cookiecutter.app_name}}/package.json index d5ecbd3..d112415 100644 --- a/{{cookiecutter.app_name}}/package.json +++ b/{{cookiecutter.app_name}}/package.json @@ -39,6 +39,8 @@ "extract-text-webpack-plugin": "^2.1.2", "file-loader": "^0.11.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", "raw-loader": "^0.5.1", "style-loader": "^0.18.2", diff --git a/{{cookiecutter.app_name}}/webpack.config.js b/{{cookiecutter.app_name}}/webpack.config.js index 4e9aca7..f4efb60 100644 --- a/{{cookiecutter.app_name}}/webpack.config.js +++ b/{{cookiecutter.app_name}}/webpack.config.js @@ -41,6 +41,7 @@ module.exports = { module: { loaders: [ { 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: /\.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,