zoukankan      html  css  js  c++  java
  • vue.config.js配置alias别名

    const path = require('path')
    module.exports = {
      lintOnSave: false, // 是否在开发环境下每次保存代码时都启用 eslint 验证
      // chainWebpack: (config) => {
      //   config.resolve.alias
      //     .set('@', path.join(__dirname, './src'))
      //     .set('@views', path.join(__dirname, './src/views'))
      //     .set('@components', path.join(__dirname, './src/components'))
      //     .set('@utils', path.join(__dirname, './src/utils'))
      // },
      configureWebpack: {
        resolve: {
          alias: {
            '@': path.join(__dirname, './src'),
            '@views': path.join(__dirname, './src/views'),
            '@components': path.join(__dirname, './src/components'),
            '@utils': path.join(__dirname, './src/utils')
          }
        }
      }
    }
  • 相关阅读:
    hdu4291 A Short problem
    UVA
    HDU
    Be Geeks!
    HDU
    hdu6559 The Tower
    胜利大逃亡(续) + Maze
    Stealing Harry Potter's Precious
    hdu5172 GTY's gay friends
    Log Concave Sequences Gym
  • 原文地址:https://www.cnblogs.com/wuqilang/p/14843063.html
Copyright © 2011-2022 走看看