Skip to content

Commit

Permalink
Merge branch 'master' into update-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Mar 15, 2018
2 parents 03b0304 + 24fa3b8 commit 45d45d2
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 66 deletions.
112 changes: 51 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "A light foundation for your next frontend project based on webpack.",
"scripts": {
"prebuild": "rimraf dist",
"build": "webpack --config webpack-prod.config.js --colors",
"dev": "webpack-dev-server --open --config webpack-dev.config.js --watch --colors"
},
Expand Down
10 changes: 5 additions & 5 deletions webpack.config-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = (options) => {
],
output: {
path: dest,
filename: 'bundle.js'
filename: 'bundle.[hash].js'
},
plugins: [
new Webpack.DefinePlugin({
Expand Down Expand Up @@ -58,8 +58,8 @@ module.exports = (options) => {
);

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

} else {
Expand All @@ -68,8 +68,8 @@ module.exports = (options) => {
);

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

0 comments on commit 45d45d2

Please sign in to comment.