vue.config.js 934 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. const Config = require('webpack-chain');
  2. const config = new Config();
  3. module.exports = {
  4. baseUrl: '/',
  5. outputDir: './wwwroot',
  6. lintOnSave: true,
  7. runtimeCompiler: true,
  8. devServer: {
  9. open: process.platform === 'darwin',
  10. host: '0.0.0.0',
  11. port: 8080,
  12. https: false,
  13. hotOnly: false,
  14. proxy: null, // string | Object
  15. before: app => { }
  16. },
  17. pages: {
  18. index: {
  19. entry: './ContestApp/src/main.js'
  20. }
  21. },
  22. chainWebpack: config => {
  23. config
  24. // Interact with entry points
  25. .entry('index')
  26. .add('./ContestApp/src/main.js')
  27. .end()
  28. // Modify output settings
  29. .output
  30. .filename('main.js');
  31. //pluginOptions: {
  32. // "dynamic-import-webpack"
  33. //}
  34. //config.plugin('dynamic-import-webpack');
  35. }
  36. }