vue.config.js 624 B

12345678910111213141516171819202122232425262728
  1. const path = require("path");
  2. function resolve(dir) {
  3. return path.join(__dirname, "", dir);
  4. }
  5. module.exports = {
  6. devServer: {
  7. disableHostCheck: true
  8. },
  9. pages: {
  10. index: {
  11. entry: "examples/main.js",
  12. template: "public/index.html",
  13. filename: "index.html"
  14. }
  15. },
  16. publicPath:'',
  17. productionSourceMap:false,
  18. configureWebpack: {
  19. resolve: {
  20. alias: {
  21. components: resolve("packages/components"),
  22. mixins: resolve("packages/mixins"),
  23. styles: resolve("packages/styles"),
  24. utils: resolve("packages/utils")
  25. }
  26. }
  27. }
  28. };