vue.config.js 518 B

1234567891011121314151617181920212223242526272829303132
  1. 'use strict'
  2. const path = require('path')
  3. module.exports = {
  4. configureWebpack: {
  5. resolve: {
  6. alias: {
  7. '@': path.resolve('src'),
  8. '@api': path.resolve('src/api')
  9. }
  10. },
  11. devServer: {
  12. headers: {
  13. 'Access-Control-Allow-Origin': '*'
  14. },
  15. disableHostCheck: true
  16. }
  17. },
  18. css: {
  19. sourceMap: process.env.NODE_ENV === 'development',
  20. requireModuleExtension: true,
  21. loaderOptions: {
  22. less: {
  23. lessOptions: {
  24. }
  25. }
  26. }
  27. },
  28. }