config.js 856 Bytes
var path = require('path');
var pkg = require("../package.json");

module.exports = {
    build: {
        env: {
            NODE_ENV: '"production"'
        },
        index: path.resolve(__dirname, `../server/public/index.html`),
        assetsRoot: path.resolve(__dirname, `../server/public/`),
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        productionSourceMap: true,
        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://127.0.0.1:6013'
        },
        cssSourceMap: false,
    }
}