mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-03-03 22:54:03 +01:00
16 lines
390 B
JavaScript
16 lines
390 B
JavaScript
/**
|
|
* Prepare compressed versions of assets to serve them with Content-Encoding
|
|
* Docs: https://github.com/webpack-contrib/compression-webpack-plugin
|
|
*/
|
|
|
|
const CompressionPlugin = require("compression-webpack-plugin")
|
|
|
|
const config = {
|
|
filename: "[path].gz[query]",
|
|
algorithm: "gzip",
|
|
cache: true,
|
|
test: /\.(html)$/,
|
|
}
|
|
|
|
export default () => new CompressionPlugin(config)
|