12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- 'use strict'
- const path = require('path')
- let p = path.resolve(__dirname, '')
- console.log('启动服务地址可在node环境中配置'+p)
- module.exports = {
- dev: {
-
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable: {},
-
- host: '192.168.31.101',
- port: 8080,
- autoOpenBrowser: false,
- errorOverlay: true,
- notifyOnErrors: true,
- poll: false,
-
-
-
- useEslint: true,
-
-
- showEslintErrorsInOverlay: false,
-
- * Source Maps
- */
-
- devtool: 'cheap-module-eval-source-map',
-
-
-
- cacheBusting: true,
- cssSourceMap: true
- },
- build: {
-
- index: path.resolve(__dirname, '../dist/index.html'),
-
- assetsRoot: path.resolve(__dirname, '../dist'),
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
-
- * Source Maps
- */
- productionSourceMap: true,
-
- devtool: '#source-map',
-
-
-
-
- productionGzip: false,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- }
- }
|