mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
chore(deps): adds compression-webpack-plugin
This commit is contained in:
parent
ac1ec4a6c3
commit
fb776cf92a
9655
package-lock.json
generated
9655
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -36,6 +36,7 @@
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-add-module-exports": "^1.0.2",
|
||||
"babel-plugin-istanbul": "^5.1.4",
|
||||
"compression-webpack-plugin": "^3.0.0",
|
||||
"coveralls": "^3.0.5",
|
||||
"docdash": "^1.1.1",
|
||||
"eslint": "^6.0.1",
|
||||
|
@ -1,9 +1,10 @@
|
||||
const path = require('path');
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
const CompressionPlugin = require('compression-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
new BundleAnalyzerPlugin(),
|
||||
new CompressionPlugin(),
|
||||
],
|
||||
mode: 'production', // "production" | "development" | "none"
|
||||
// Chosen mode tells webpack to use its built-in optimizations accordingly.
|
||||
|
Loading…
Reference in New Issue
Block a user