Skip to content

Commit

Permalink
Add webpack watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ttencate committed Oct 31, 2018
1 parent 6d7ddb6 commit e00a988
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"scripts": {
"clean": "rm -rf dist/",
"build": "webpack",
"watch": "webpack --watch",
"publish": "npm run clean && npm run build && rsync -rv --delete --exclude=.* dist/ thomas@frozenfractal.com:/var/www/jfxr.frozenfractal.com/"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
enforce: 'pre',
options: {
emitError: true,
emitWarning: true,
failOnError: true,
failOnWarning: true,
},
},
{
Expand Down Expand Up @@ -68,4 +66,5 @@ module.exports = {
filename: '[hash].css',
}),
],
stats: 'minimal',
};
3 changes: 2 additions & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
},
"main": "index.js",
"scripts": {
"build": "webpack",
"clean": "rm -rf build/",
"build": "webpack",
"watch": "webpack --watch",
"publish": "npm run clean && npm run build && npm publish"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions lib/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
loader: 'eslint-loader',
enforce: 'pre',
options: {
emitError: true,
emitWarning: true,
failOnError: true,
failOnWarning: true,
},
},
],
},
devtool: 'source-map',
stats: 'minimal',
};

0 comments on commit e00a988

Please sign in to comment.