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:
@ -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 })]
|
||||
};
|
||||
|
Reference in New Issue
Block a user