index.js 642 B

12345678910111213141516171819202122232425262728293031
  1. // see http://vuejs-templates.github.io/webpack for documentation.
  2. 'use strict'
  3. const path = require('path')
  4. module.exports = {
  5. dev: { // npm run dev 配置参数
  6. // Paths
  7. assetsSubDirectory: 'static',
  8. assetsPublicPath: '/',
  9. proxyTable: {},
  10. // Various Dev Server settings
  11. host: 'localhost',
  12. port: 8080,
  13. },
  14. build: {
  15. env: {
  16. NODE_ENV: '"production"'
  17. },
  18. productionSourceMap: false,
  19. productionGzip: false,
  20. // Template for index.html
  21. index: path.resolve(__dirname, '../dist/index.html'),
  22. // Paths
  23. assetsRoot: path.resolve(__dirname, '../dist'),
  24. assetsSubDirectory: 'static',
  25. assetsPublicPath: '/',
  26. },
  27. }