1、安装支持webpack 包
npm i -D webpack webpack-cli aspnet-webpack webpack-dev-middleware webpack-hot-middleware clean-webpack-plugin html-webpack-plugin
2、支持 babel ES2017
npm i -D @babel/core @babel/cli @babel/preset-env @babel/plugin-transform-runtime babel-loader
npm i @babel/runtime @babel/polyfill @babel/plugin-syntax-dynamic-import
配置为:
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"esmodules": false
}
}
]
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import"
]
}
3、支持各种文件类型加载
npm i -D cache-loader file-loader html-loader postcss-loader style-loader svg-sprite-loader text-loader url-loader
4、sass 文件类型
npm i -D css-loader node-sass sass-loader autoprefixer
5、element-ui 支持
npm i vue vuex vue-router element-ui axios
npm i -D vue-cli vue-loader vue-template-compiler
6、各种 vue 插件
npm i vue-grid-layout vue-i18n vue-json-tree-view vue-splitpane vue-router screenfull file-saver hotkeys-js dayjs
7、继续插件
npm i @d2-projects/d2-crud better-scroll clipboard-polyfill echarts nprogress lodash lowdb fuse.js flex.css js-cookie mockjs papaparse ua-parser-js xlsx particles.js