idea.config.js 624 B

12345678910111213141516171819202122232425
  1. 'use strict'
  2. const path = require('path')
  3. function resolve (dir) {
  4. return path.join(__dirname, '.', dir)
  5. }
  6. module.exports = {
  7. context: path.resolve(__dirname, './'),
  8. resolve: {
  9. extensions: ['.js', '.vue', '.json'],
  10. alias: {
  11. 'config': resolve('config'),
  12. '@': resolve('src'),
  13. '@views': resolve('src/views'),
  14. '@comp': resolve('src/components'),
  15. '@core': resolve('src/core'),
  16. '@utils': resolve('src/utils'),
  17. '@entry': resolve('src/entry'),
  18. '@router': resolve('src/router'),
  19. '@store': resolve('src/store'),
  20. '@assets': resolve('src/assets'),
  21. }
  22. }
  23. }