1、npm i -g vue-cli
2、vue init webpack vux-project
3、cd vux-project
4、npm install vux –save
5、npm install vux-loader –save-dev
6、npm install stylus –save-dev
7、npm install less less-loader –save-dev
8、配置build/webpack.base.conf.js文件:
const vuxLoader = require(‘vux-loader’)
const webpackConfig = originalConfig // 原来的 module.exports 代码赋值给变量 webpackConfig
module.exports = vuxLoader.merge(webpackConfig, {
plugins: [‘vux-ui’]
})
9、npm run dev