mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Removes bundle analyzer
This commit is contained in:
parent
4d4c25c505
commit
e0f82241d0
528
package-lock.json
generated
528
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -34,13 +34,11 @@
|
||||
"sinon": "^1.17.2",
|
||||
"uglifyjs-webpack-plugin": "^1.2.4",
|
||||
"webpack": "^4.5.0",
|
||||
"webpack-bundle-analyzer": "^2.11.1",
|
||||
"webpack-cli": "^3.1.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-debug && npm run build-min",
|
||||
"build-debug": "webpack --mode=development",
|
||||
"build-analyze": "cross-env ANALYZE_BUILD=true npm run prepublish",
|
||||
"build-min": "cross-env NODE_ENV=production webpack --mode=production",
|
||||
"build-watch": "webpack --watch",
|
||||
"test": "karma start --single-run",
|
||||
|
@ -2,7 +2,6 @@ const pkg = require('./package.json');
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
|
||||
const production = process.env.NODE_ENV === 'production' || false;
|
||||
|
||||
@ -39,12 +38,5 @@ module.exports = {
|
||||
})
|
||||
]
|
||||
},
|
||||
plugins: production ? [
|
||||
new webpack.BannerPlugin({ banner }),
|
||||
new BundleAnalyzerPlugin({
|
||||
analyzerMode: process.env.ANALYZE_BUILD ? 'server' : 'disabled'
|
||||
})
|
||||
] : [
|
||||
new webpack.BannerPlugin({ banner })
|
||||
]
|
||||
plugins: [new webpack.BannerPlugin({ banner })]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user