UNPKG

@luban-cli/cli-plugin-service

Version:
19 lines 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Performance { apply(args) { const { api } = args; const isProduction = process.env.NODE_ENV === "production"; api.chainWebpack("client", (webpackConfig) => { webpackConfig.performance .hints(isProduction ? "warning" : false) // max entry point size 1M .maxEntrypointSize(1048576) // max asset size 256kb .maxAssetSize(262144) .end(); }); } } exports.default = Performance; //# sourceMappingURL=performance.js.map