1.用stylus去写代码需要手动到package.json 添加依赖
"stylus": "^0.54.5",
"stylus-loader": "^2.1.1"
2..eslintrc.js 添加规则
'eol-last': 0, //不检测新文件末尾是否有空行
'space-before-function-paren': 0 //在function的左括号前是否需要空格(0为不需要)
3.webpack.base.conf.js resolve 配置文件文件路径别名
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
'common':resolve('src/common'),
'components' : resolve('src/components'),
'api': resolve('src/api'),
'base': resolve('src/base'),
},
symlinks: false
},