Improve compression settings, Inferno credits

This commit is contained in:
Corentin Risselin 2020-07-20 21:13:32 +09:00
commit 8ade0ee633
6 changed files with 38 additions and 9 deletions

View file

@ -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