webstorm 开新项目 setting 设置@目录别名 add @ (languages & Framewors - Javascript - Webpack 4. setting eslint enable

webstorm 开新项目 setting 设置@目录别名 add @ (languages & Framewors - Javascript - Webpack 4. setting eslint enable
1. svn download
2. add npm run dev(check add)
3. add @ (languages & Framewors - Javascript - Webpack - C:\myHome\epan\rolanDesk\svn_work\inspectionTour_web\alias.config.js)
4. setting eslint enable

https://blog.csdn.net/gyz718/article/details/70556188
使用WebStorm的Macros宏指令,实现保存的同时格式化代码,并跳至行尾

 

alias.config.js

const path = require('path')
module.exports = {
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
      '_c': path.resolve(__dirname, 'src/components')
    }
  }
}

 

posted @ 2019-11-07 13:59  彭成刚  阅读(440)  评论(0编辑  收藏  举报