remove webpack-bundle-analyzer
This commit is contained in:
parent
eb6ebe6417
commit
cda4589813
4 changed files with 32 additions and 2 deletions
5
debian/patches/0420-use-system-libs.patch
vendored
5
debian/patches/0420-use-system-libs.patch
vendored
|
@ -45,7 +45,7 @@
|
||||||
"react-dev-utils": "^0.5.2",
|
"react-dev-utils": "^0.5.2",
|
||||||
"select2": "3.5.2-browserify",
|
"select2": "3.5.2-browserify",
|
||||||
"sql.js": "^0.4.0",
|
"sql.js": "^0.4.0",
|
||||||
@@ -56,14 +38,11 @@
|
@@ -56,15 +38,11 @@
|
||||||
"three-orbit-controls": "^82.1.0",
|
"three-orbit-controls": "^82.1.0",
|
||||||
"three-stl-loader": "^1.0.4",
|
"three-stl-loader": "^1.0.4",
|
||||||
"timeago.js": "^2.0.5",
|
"timeago.js": "^2.0.5",
|
||||||
|
@ -57,6 +57,7 @@
|
||||||
"vue-resource": "^1.3.4",
|
"vue-resource": "^1.3.4",
|
||||||
"vue-template-compiler": "^2.2.6",
|
"vue-template-compiler": "^2.2.6",
|
||||||
- "webpack": "^3.4.0",
|
- "webpack": "^3.4.0",
|
||||||
"webpack-bundle-analyzer": "^2.8.2",
|
- "webpack-bundle-analyzer": "^2.8.2",
|
||||||
"webpack-stats-plugin": "^0.1.5"
|
"webpack-stats-plugin": "^0.1.5"
|
||||||
},
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
|
27
debian/patches/remove-bundle-analyzer.patch
vendored
Normal file
27
debian/patches/remove-bundle-analyzer.patch
vendored
Normal 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;
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -22,4 +22,5 @@ pid-log-paths.patch
|
||||||
0410-set-webpack-root.patch
|
0410-set-webpack-root.patch
|
||||||
0420-use-system-libs.patch
|
0420-use-system-libs.patch
|
||||||
add-system-lib-path-for-webpack.patch
|
add-system-lib-path-for-webpack.patch
|
||||||
|
remove-bundle-analyzer.patch
|
||||||
fix-mail-room-path.patch
|
fix-mail-room-path.patch
|
||||||
|
|
1
debian/rake-tasks.sh
vendored
1
debian/rake-tasks.sh
vendored
|
@ -36,6 +36,7 @@ runuser -u ${gitlab_user} -- sh -c 'npm i document-register-element@1.3.0'
|
||||||
|
|
||||||
echo "Webpacking..."
|
echo "Webpacking..."
|
||||||
runuser -u ${gitlab_user} -- sh -c 'rm -rf node_modules/webpack'
|
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'
|
runuser -u ${gitlab_user} -- sh -c 'NODE_PATH=/usr/share/gitlab/node_modules webpack --config config/webpack.config.js'
|
||||||
|
|
||||||
echo "Precompiling assets..."
|
echo "Precompiling assets..."
|
||||||
|
|
Loading…
Reference in a new issue