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:
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",
|
"sinon": "^1.17.2",
|
||||||
"uglifyjs-webpack-plugin": "^1.2.4",
|
"uglifyjs-webpack-plugin": "^1.2.4",
|
||||||
"webpack": "^4.5.0",
|
"webpack": "^4.5.0",
|
||||||
"webpack-bundle-analyzer": "^2.11.1",
|
|
||||||
"webpack-cli": "^3.1.2"
|
"webpack-cli": "^3.1.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run build-debug && npm run build-min",
|
"build": "npm run build-debug && npm run build-min",
|
||||||
"build-debug": "webpack --mode=development",
|
"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-min": "cross-env NODE_ENV=production webpack --mode=production",
|
||||||
"build-watch": "webpack --watch",
|
"build-watch": "webpack --watch",
|
||||||
"test": "karma start --single-run",
|
"test": "karma start --single-run",
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ const pkg = require('./package.json');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
||||||
|
|
||||||
const production = process.env.NODE_ENV === 'production' || false;
|
const production = process.env.NODE_ENV === 'production' || false;
|
||||||
|
|
||||||
@@ -39,12 +38,5 @@ module.exports = {
|
|||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: production ? [
|
plugins: [new webpack.BannerPlugin({ banner })]
|
||||||
new webpack.BannerPlugin({ banner }),
|
|
||||||
new BundleAnalyzerPlugin({
|
|
||||||
analyzerMode: process.env.ANALYZE_BUILD ? 'server' : 'disabled'
|
|
||||||
})
|
|
||||||
] : [
|
|
||||||
new webpack.BannerPlugin({ banner })
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user