mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 15:25:24 +00:00
update configs
This commit is contained in:
parent
f22208395a
commit
de6efc2750
@ -15,7 +15,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const CompressionWebpackPlugin = require("compression-webpack-plugin");
|
|
||||||
const AutoImport = require("unplugin-auto-import/webpack");
|
const AutoImport = require("unplugin-auto-import/webpack");
|
||||||
const Components = require("unplugin-vue-components/webpack");
|
const Components = require("unplugin-vue-components/webpack");
|
||||||
const { ElementPlusResolver } = require("unplugin-vue-components/resolvers");
|
const { ElementPlusResolver } = require("unplugin-vue-components/resolvers");
|
||||||
@ -101,16 +100,5 @@ module.exports = {
|
|||||||
dts: "./src/types/components.d.ts",
|
dts: "./src/types/components.d.ts",
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
if (process.env.NODE_ENV === "production") {
|
|
||||||
const productionGzipExtensions = ["html", "js", "css"];
|
|
||||||
config.plugins.push(
|
|
||||||
new CompressionWebpackPlugin({
|
|
||||||
filename: "[path][base].gz",
|
|
||||||
algorithm: "gzip",
|
|
||||||
test: new RegExp("\\.(" + productionGzipExtensions.join("|") + ")$"),
|
|
||||||
threshold: 10240,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user