Improve compression settings, Inferno credits
This commit is contained in:
parent
93f0b1d836
commit
8ade0ee633
6 changed files with 38 additions and 9 deletions
|
|
@ -33,6 +33,7 @@ module.exports = Object.assign(
|
|||
}),
|
||||
new CopyPlugin([
|
||||
{from: 'index.html'},
|
||||
{from: 'robot.txt'},
|
||||
{from: 'src/lang', to: 'lang'},
|
||||
{from: 'assets/public', to: 'assets'}
|
||||
]),
|
||||
|
|
@ -40,7 +41,8 @@ module.exports = Object.assign(
|
|||
{
|
||||
filename: "[path].gz[query]",
|
||||
algorithm: "gzip",
|
||||
test: /\.js/
|
||||
test: [/\.js/, /^assets\.*/],
|
||||
threshold: 1000
|
||||
})
|
||||
],
|
||||
// webpack-dev-server configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue