Skip to content

Commit

Permalink
vuestorefront#2254 compress only js files and do not prefetch uncompr…
Browse files Browse the repository at this point in the history
…essed
  • Loading branch information
patzick committed Feb 5, 2019
1 parent 593cc4f commit 3a1f522
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/build/webpack.prod.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ const extendedConfig = require(path.join(themeRoot, '/webpack.config.js'))
const prodClientConfig = merge(baseClientConfig, {
mode: 'production',
plugins: [
new CompressionPlugin()
new CompressionPlugin({
test: /\.js(\?.*)?$/i,
deleteOriginalAssets: true
})
]
})

Expand Down

0 comments on commit 3a1f522

Please sign in to comment.