1.启动报错的几个点
把 build\webpack.base.conf.js 目录下的词文件屏蔽
const createLintingRule = () => ({ // test: /\.(js|vue)$/, // loader: 'eslint-loader', // enforce: 'pre', // include: [resolve('src'), resolve('test')], // options: { // formatter: require('eslint-friendly-formatter'), // emitWarning: !config.dev.showEslintErrorsInOverlay // } })
2.安装依赖
npm install style-loader css-loader style-loader --save-dev
3.导入vant需要注意的点
"plugins": [ ["import", { "libraryName": "vant", "libraryDirectory": "es", "style": true }] ],