Skip to content

Commit 72ad096

Browse files
committed
Update npm packages
1 parent c0f7129 commit 72ad096

File tree

3 files changed

+2116
-314
lines changed

3 files changed

+2116
-314
lines changed

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22
"private": true,
33
"scripts": {
44
"dev": "node server.js",
5-
"build": "NODE_ENV=production webpack"
5+
"build": "NODE_ENV=production webpack --mode production"
66
},
77
"devDependencies": {
8-
"@vuex-orm/core": "^0.16.0",
9-
"autoprefixer": "^7.2.5",
8+
"@vuex-orm/core": "^0.21.0",
9+
"autoprefixer": "^8.0.0",
1010
"babel-core": "^6.26.0",
11-
"babel-loader": "^7.1.2",
11+
"babel-loader": "^7.1.3",
1212
"babel-preset-env": "^1.6.1",
1313
"babel-preset-stage-2": "^6.24.1",
14-
"css-loader": "^0.28.9",
14+
"css-loader": "^0.28.10",
1515
"express": "^4.16.2",
16-
"normalize.css": "^7.0.0",
16+
"normalize.css": "^8.0.0",
1717
"postcss-css-variables": "^0.8.0",
18-
"postcss-import": "^11.0.0",
18+
"postcss-import": "^11.1.0",
1919
"postcss-nested": "^3.0.0",
2020
"vue": "^2.5.13",
21-
"vue-loader": "^13.7.0",
21+
"vue-loader": "^14.1.1",
2222
"vue-template-compiler": "^2.5.13",
2323
"vuex": "^3.0.1",
24-
"webpack": "^3.10.0",
25-
"webpack-dev-middleware": "^2.0.4",
24+
"webpack": "^4.0.1",
25+
"webpack-cli": "^2.0.9",
26+
"webpack-dev-middleware": "^2.0.6",
2627
"webpack-hot-middleware": "^2.21.0"
2728
}
2829
}

webpack.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const webpack = require('webpack')
44
const rootDir = path.join(__dirname, '.')
55

66
const config = {
7+
mode: 'development',
8+
79
devtool: 'inline-source-map',
810

911
entry: {
@@ -35,14 +37,10 @@ const config = {
3537
}
3638

3739
if (process.env.NODE_ENV === 'production') {
40+
config.mode = 'production'
41+
3842
config.entry.main.shift()
3943
config.output.path = `${rootDir}/public/js`
40-
41-
config.plugins.push(
42-
new webpack.optimize.UglifyJsPlugin({
43-
compress: { warnings: false }
44-
})
45-
)
4644
} else {
4745
config.plugins.push(new webpack.HotModuleReplacementPlugin())
4846
config.plugins.push(new webpack.NoEmitOnErrorsPlugin())

0 commit comments

Comments
 (0)