- 创建一个vue项目
vue init webpack AwesomeProject
- 去掉eslint-loader检查,build/webpack.base.conf.js
{
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter')
}
},
- 安装sass-loader
npm i node-sass sass-loader sass-style -D
#或者用yarn
yarn add node-sass ssass-loader sass-style