vue.config.js 403 B

12345678910111213141516171819
  1. const path = require('path')
  2. function resolve (dir) {
  3. return path.join(__dirname, dir)
  4. }
  5. module.exports = {
  6. lintOnSave: true,
  7. chainWebpack: config => {
  8. config.resolve.alias.set('@', resolve('src'))
  9. },
  10. css: {
  11. loaderOptions: {
  12. sass: {
  13. data: `@import "@/style/variable.scss";@import "@/style/mixins.scss";`
  14. }
  15. }
  16. }
  17. }