vue.config.js 460 B

12345678910111213141516171819202122232425262728293031
  1. 'use strict'
  2. const path = require('path')
  3. const webpack = require('webpack')
  4. function resolve(dir) {
  5. return path.join(__dirname, dir)
  6. }
  7. module.exports = {
  8. publicPath: '',
  9. devServer: {
  10. hot: true,
  11. compress: true,
  12. open: true,
  13. overlay: {
  14. warnings: false,
  15. errors: true
  16. },
  17. },
  18. configureWebpack: {
  19. resolve: {
  20. alias: {
  21. '@': resolve('src')
  22. }
  23. },
  24. },
  25. css: {
  26. sourceMap: false
  27. },
  28. runtimeCompiler: true,
  29. productionSourceMap: false
  30. }