Skip to content

Commit

Permalink
Merge branch 'master' into minify-css
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick authored Nov 19, 2017
2 parents b0df102 + 7169ac4 commit 8866e7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webpack.config-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const Webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ExtractSASS = new ExtractTextPlugin('styles/bundle.css');
const webpack = require('webpack');

module.exports = (options) => {
const dest = Path.join(__dirname, 'dist');
Expand Down Expand Up @@ -56,7 +55,7 @@ module.exports = (options) => {
);

webpackConfig.module.rules.push({
test: /\.scss$/i,
test: /\.s?css/i,
use: ExtractSASS.extract(['css-loader?minimize=true', 'sass-loader'])
});

Expand All @@ -66,7 +65,7 @@ module.exports = (options) => {
);

webpackConfig.module.rules.push({
test: /\.scss$/i,
test: /\.s?css$/i,
use: ['style-loader', 'css-loader', 'sass-loader']
}, {
test: /\.js$/,
Expand Down

0 comments on commit 8866e7b

Please sign in to comment.