Vue CLI plugin to use esbuild and hard-source-webpack-plugin
npm i vue-cli-plugin-faster
interface FasterOpts {
// 是否开启该插件,true为禁用
disabled?: boolean;
// 默认['es2015']
target?: string | string[];
// hard-source-webpack-plugin的配置,为 false 则不使用 hardSourceWebpackPlugin
hardSourceWebpackPluginOption?: any | false;
// hard-source-webpack-plugin excludeModulePlugin的配置
excludeModulePluginOption?: any
}
// vue.config.js
module.exports = {
pluginOptions: {
faster: {}
}
}