Webpack stats
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,5 +2,6 @@ dist
|
||||
node_modules/*
|
||||
.env
|
||||
npm-debug.log
|
||||
stats.json
|
||||
.DS_Store
|
||||
fakes3/*
|
||||
|
||||
@@ -15,6 +15,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
|
||||
filename: 'bundle.[hash].js',
|
||||
publicPath: '/static/',
|
||||
},
|
||||
stats: "normal"
|
||||
});
|
||||
productionWebpackConfig.plugins.push(
|
||||
new HtmlWebpackPlugin({
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"build:webpack": "NODE_ENV=production webpack --config config/webpack.prod.js",
|
||||
"build:analyze": "NODE_ENV=production webpack --config config/webpack.prod.js --json | webpack-bundle-size-analyzer",
|
||||
"build:analyze": "NODE_ENV=production webpack --config config/webpack.prod.js --json > stats.json",
|
||||
"build": "npm run clean && npm run build:webpack",
|
||||
"start": "NODE_ENV=production node index.js",
|
||||
"dev": "NODE_ENV=development nodemon --watch server index.js",
|
||||
@@ -202,4 +202,4 @@
|
||||
"raf": "^3.4.0",
|
||||
"react-test-renderer": "^16.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user