summaryrefslogtreecommitdiff
path: root/vue.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vue.config.js')
-rw-r--r--vue.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vue.config.js b/vue.config.js
index be8982d..c481b94 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -6,7 +6,7 @@ module.exports = {
//integrity: true, // enable SRI in script/style tags
parallel: true,
configureWebpack: {
- plugins: [
+ plugins: process.env.NODE_ENV === "production" ? [
new CompressionPlugin({
filename: "[path].br[query]",
algorithm: "brotliCompress",
@@ -34,6 +34,6 @@ module.exports = {
return zopfli.gzip(input, compressionOptions, callback);
},
}),
- ],
+ ]: [],
}
}