vue.config.js 648 B

123456789101112131415161718192021222324252627282930313233
  1. 'use strict'
  2. const { log } = require('console')
  3. const path = require('path')
  4. module.exports = {
  5. configureWebpack: {
  6. resolve: {
  7. alias: {
  8. '@': path.resolve('src'),
  9. '@api': path.resolve('src/api')
  10. }
  11. },
  12. devServer: {
  13. headers: {
  14. 'Access-Control-Allow-Origin': '*'
  15. }
  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. chainWebpack: config => {
  29. console.log(config);
  30. }
  31. }