@vue/cli 3.x plugin example by Optoro for VueConf US 2019, watch the talk.
vue add vueconf-2019-examplePlugins:
ManifestPlugin: for generating a JSON output of the build assetsHoneybadgerSourceMapPlugin: for tracking deploys of staging/production builds to provide source maps for better stack tracesDefinePlugin:COMMITHASHprovides the git commit hash from git-revision-webpack-plugin
src/App.vue: importsbootstrap-vueby default, uses Bootstrap template.browserslistrc: sets supported browsers.env.*: default configuration for different environments
-
Set
lintOnSaveto an expression likeprocess.env.NODE_ENV !== 'production !default' -
Set
browserslistwithapi.extendpackage, but cannot delete the entries that exist already, so we use a template instead