idea.config.js 655 B

123456789101112131415161718192021222324
  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. }
  21. },
  22. }