Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 389dce3

Browse files
Merge pull request #25 from xunleif2e/develop
chore: remove webpack analyzer
2 parents 04358b3 + 9b84999 commit 389dce3

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules/
33
npm-debug.log
4+
package-lock.json

‎build/webpack.prod.conf.js‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,4 @@ if (config.build.productionGzip) {
112112
)
113113
}
114114

115-
if (config.build.bundleAnalyzerReport) {
116-
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
117-
webpackConfig.plugins.push(new BundleAnalyzerPlugin())
118-
}
119-
120115
module.exports = webpackConfig

‎config/index.js‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ module.exports = {
1414
// Before setting to `true`, make sure to:
1515
// npm install --save-dev compression-webpack-plugin
1616
productionGzip: false,
17-
productionGzipExtensions: ['js', 'css'],
18-
// Run the build command with an extra argument to
19-
// View the bundle analyzer report after build finishes:
20-
// `npm run build --report`
21-
// Set to `true` or `false` to always turn it on or off
22-
bundleAnalyzerReport: process.env.npm_config_report
17+
productionGzipExtensions: ['js', 'css']
2318
},
2419
dev: {
2520
env: require('./dev.env'),

‎package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"vue-style-loader": "^3.0.1",
7474
"vue-template-compiler": "^2.3.3",
7575
"webpack": "^2.6.1",
76-
"webpack-bundle-analyzer": "^2.2.1",
7776
"webpack-dev-middleware": "^1.10.0",
7877
"webpack-hot-middleware": "^2.18.0",
7978
"webpack-merge": "^4.1.0"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /