Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 759 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 759 Bytes

vue-cli-plugin-faster

Vue CLI plugin to use esbuild and hard-source-webpack-plugin

安装 install

npm i vue-cli-plugin-faster

简单配置 config

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: {}
  }
}