2021-04-22 12:48:45 +00:00
|
|
|
const CompressionPlugin = require("compression-webpack-plugin");
|
|
|
|
|
2019-01-05 16:12:09 +00:00
|
|
|
module.exports = {
|
|
|
|
runtimeCompiler: true,
|
2021-03-21 11:51:58 +00:00
|
|
|
publicPath: "[{[ .StaticURL ]}]",
|
2023-08-17 21:46:49 +00:00
|
|
|
parallel: true,
|
2021-04-22 12:48:45 +00:00
|
|
|
configureWebpack: {
|
2023-09-09 21:20:02 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
// Add Ace Editor alias for importing it in your Vue components
|
|
|
|
ace: "ace-builds/src-min-noconflict",
|
|
|
|
},
|
|
|
|
extensions: ["*", ".js", ".vue", ".json"],
|
|
|
|
},
|
2021-04-22 12:48:45 +00:00
|
|
|
plugins: [
|
|
|
|
new CompressionPlugin({
|
|
|
|
include: /\.js$/,
|
|
|
|
deleteOriginalAssets: true,
|
2023-08-17 21:46:49 +00:00
|
|
|
minRatio: 0.8,
|
2021-04-22 12:48:45 +00:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
},
|
2021-03-21 11:51:58 +00:00
|
|
|
};
|