修正日行一善
This commit is contained in:
+12
-12
@@ -23,19 +23,19 @@ module.exports = {
|
||||
}).end();
|
||||
})
|
||||
|
||||
config.plugin('compression').use(
|
||||
new CompressionWebpackPlugin({
|
||||
filename: info => `${info.path}.gz${info.query}`,
|
||||
algorithm: 'gzip',
|
||||
threshold: 10240,
|
||||
test: /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i,
|
||||
minRatio: 0.8,
|
||||
deleteOriginalAssets: true
|
||||
})
|
||||
)
|
||||
// config.plugin('compression').use(
|
||||
// new CompressionWebpackPlugin({
|
||||
// filename: info => `${info.path}.gz${info.query}`,
|
||||
// algorithm: 'gzip',
|
||||
// threshold: 10240,
|
||||
// test: /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i,
|
||||
// minRatio: 0.8,
|
||||
// deleteOriginalAssets: true
|
||||
// })
|
||||
// )
|
||||
|
||||
config.resolve.plugins.delete('prefetch');
|
||||
config.resolve.plugins.delete('prerload');
|
||||
// config.resolve.plugins.delete('prefetch');
|
||||
// config.resolve.plugins.delete('prerload');
|
||||
|
||||
},
|
||||
configureWebpack: config => {
|
||||
|
||||
Reference in New Issue
Block a user