config.js
831 Bytes
const path = require('path');
const pkg = require('../package.json');
module.exports = {
build: {
env: {
NODE_ENV: '"production"',
},
index: path.resolve(__dirname, `../dist/statics/${pkg.name}/${pkg.version}/index.html`),
assetsRoot: path.resolve(__dirname, `../dist/statics/${pkg.name}/`),
assetsSubDirectory: 'static',
assetsPublicPath: '//cdn.yoho.cn/yoho-shop-manage/',
productionSourceMap: false,
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
bundleAnalyzerReport: process.env.npm_config_report,
},
dev: {
env: {
NODE_ENV: '"dev"',
},
port: 6008,
autoOpenBrowser: true,
assetsSubDirectory: 'static-dev',
assetsPublicPath: '/',
proxyTable: {
'/Api': 'http://localhost:6007',
},
cssSourceMap: false,
},
};