Configuration vux

  1. Install vuE-Loader of earlier version
NPM install [email protected] - DCopy the code
  1. Install vux – loader
npm install vux-loader --save
Copy the code
  1. Configure the vue. Config. Js

module.exports = {
    configureWebpack: config => {
        require('vux-loader').merge(config, {
            options: {},
            plugins: [{ name: 'vux-ui' }, {
                name: 'less-theme',
                path: 'src/styles/theme.less'}]})}, devServer: {'localhost',
    },
    css: undefined,
    lintOnSave: false,
    outputDir: undefined,
    assetsDir: undefined,
    runtimeCompiler: true// Vue build containing the runtime compiler productionSourceMap:false,}Copy the code