123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- 'use strict'
- const path = require('path')
- function resolve(dir) {
- return path.join(__dirname, dir)
- }
- module.exports = {
- chainWebpack: config => {
- config.resolve.alias
- .set('@', resolve('src'))
- },
- dev: {
-
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable: {
- '/dev': {
- target: 'https://www.tuanfengkeji.cn',
- changeOrigin: true,
- pathRewrite: {
- '^/dev': '',
- },
- }
- },
- https: false,
-
-
-
- host: 'localhost',
-
- port: 80,
- autoOpenBrowser: true,
- errorOverlay: true,
- notifyOnErrors: false,
- poll: false,
-
-
-
- useEslint: true,
-
-
- showEslintErrorsInOverlay: false,
-
-
- devtool: 'cheap-source-map',
-
-
-
-
-
- cssSourceMap: false
- },
- build: {
-
- index: path.resolve(__dirname, '../dist/index.html'),
-
- assetsRoot: path.resolve(__dirname, '../dist'),
- assetsSubDirectory: 'static',
-
- assetsPublicPath: '/tfdata/',
-
- productionSourceMap: false,
-
- devtool: 'source-map',
-
-
-
-
- productionGzip: false,
- productionGzipExtensions: ['js', 'css'],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report || false,
-
- generateAnalyzerReport: process.env.npm_config_generate_report || false
- }
- }
|