cnpm install vux --save
cnpm install vux-loader --save-dev
cnpm install less less-loader --save-dev
cnpm install yaml-loader --save-dev
//webpack.base.conf.js 中修改
const vuxLoader = require('vux-loader')
const webpackConfig = originalConfig // 原来的 module.exports 代码赋值给变量 webpackConfig,
module.exports = vuxLoader.merge(webpackConfig, { plugins: ['vux-ui'] })
extensions: ['.js', '.vue', '.json','.less'] //resolve.extensions里加入.less。