remove webpack-bundle-analyzer

This commit is contained in:
Pirate Praveen 2018-02-26 16:52:34 +05:30
parent eb6ebe6417
commit cda4589813
4 changed files with 32 additions and 2 deletions

View file

@ -45,7 +45,7 @@
"react-dev-utils": "^0.5.2",
"select2": "3.5.2-browserify",
"sql.js": "^0.4.0",
@@ -56,14 +38,11 @@
@@ -56,15 +38,11 @@
"three-orbit-controls": "^82.1.0",
"three-stl-loader": "^1.0.4",
"timeago.js": "^2.0.5",
@ -57,6 +57,7 @@
"vue-resource": "^1.3.4",
"vue-template-compiler": "^2.2.6",
- "webpack": "^3.4.0",
"webpack-bundle-analyzer": "^2.8.2",
- "webpack-bundle-analyzer": "^2.8.2",
"webpack-stats-plugin": "^0.1.5"
},
"devDependencies": {

View file

@ -0,0 +1,27 @@
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -7,7 +7,6 @@
var CopyWebpackPlugin = require('copy-webpack-plugin');
var CompressionPlugin = require('compression-webpack-plugin');
var NameAllModulesPlugin = require('name-all-modules-plugin');
-var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
var ROOT_PATH = '/usr/share/gitlab';
@@ -310,16 +309,4 @@
}
}
-if (WEBPACK_REPORT) {
- config.plugins.push(
- new BundleAnalyzerPlugin({
- analyzerMode: 'static',
- generateStatsFile: true,
- openAnalyzer: false,
- reportFilename: path.join(ROOT_PATH, 'webpack-report/index.html'),
- statsFilename: path.join(ROOT_PATH, 'webpack-report/stats.json'),
- })
- );
-}
-
module.exports = config;

View file

@ -22,4 +22,5 @@ pid-log-paths.patch
0410-set-webpack-root.patch
0420-use-system-libs.patch
add-system-lib-path-for-webpack.patch
remove-bundle-analyzer.patch
fix-mail-room-path.patch

View file

@ -36,6 +36,7 @@ runuser -u ${gitlab_user} -- sh -c 'npm i document-register-element@1.3.0'
echo "Webpacking..."
runuser -u ${gitlab_user} -- sh -c 'rm -rf node_modules/webpack'
runuser -u ${gitlab_user} -- sh -c 'rm -rf node_modules/webpack-bundle-analyzer'
runuser -u ${gitlab_user} -- sh -c 'NODE_PATH=/usr/share/gitlab/node_modules webpack --config config/webpack.config.js'
echo "Precompiling assets..."