mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
compress bundled js
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const path = require('path');
|
||||
const CompressionPlugin = require("compression-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
@@ -11,8 +12,11 @@ module.exports = {
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../dist'),
|
||||
filename: "[name]-bundle.js"
|
||||
filename: "[name]-bundle.js",
|
||||
},
|
||||
plugins: [new CompressionPlugin({
|
||||
exclude: [/.map$/, /521-bundle.js$/]
|
||||
})],
|
||||
mode: "development",
|
||||
node: false,
|
||||
devtool: 'source-map',
|
||||
|
||||
Reference in New Issue
Block a user