Blame view

vue.config.js 383 Bytes
5e52ed7c   刘淇   个人中心
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  const path = require('path')
  module.exports = {
    css:{
      loaderOptions:{
        less:{
          modifyVars:{
            //通过本地less文件覆盖变量
            // true; @import "your-less-file-path.less";
            modifyVars: {
              hack: `true; @import "${path.resolve(__dirname, './src/assets/css/resetVantUi.less')}";`
             }
          }
        }
      }
    }
  }
  
  }