webpack.alias.config.js 635 B

12345678910111213141516171819
  1. /**
  2. * 用于ide的路径查找,不做项目配置
  3. * @type {path.PlatformPath | path}
  4. */
  5. const path = require('path')
  6. module.exports = {
  7. resolve: {
  8. alias: {
  9. '@': path.resolve(__dirname, 'src'),
  10. '_c': path.resolve(__dirname, 'src/components'),
  11. '_m': path.resolve(__dirname, 'src/mixins'),
  12. '_a': path.resolve(__dirname, 'src/assets'),
  13. '_s': path.resolve(__dirname, 'src/style'),
  14. '_p': path.resolve('src/pages'),
  15. '_merchant': path.resolve('src/pages/merchant'),
  16. '_platform': path.resolve('src/pages/platform')
  17. }
  18. }
  19. }