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