index.js 697 B

1234567891011121314151617181920212223242526272829
  1. var path = require('path')
  2. module.exports = {
  3. build: {
  4. env: require('./prod.env'),
  5. index: path.resolve(__dirname, '../dist/index.html'),
  6. assetsRoot: path.resolve(__dirname, '../dist'),
  7. assetsSubDirectory: 'static',
  8. assetsPublicPath: '/',
  9. productionSourceMap: true,
  10. productionGzip: false,
  11. productionGzipExtensions: ['js', 'css'],
  12. bundleAnalyzerReport: process.env.npm_config_report
  13. },
  14. dev: {
  15. env: require('./dev.env'),
  16. port: 8086,
  17. autoOpenBrowser: true,
  18. assetsSubDirectory: 'static',
  19. assetsPublicPath: '/',
  20. proxyTable: {
  21. '/api': {
  22. target: 'http://localhost:9999'
  23. }
  24. },
  25. cssSourceMap: false
  26. }
  27. }