diff --git a/client-report/webpack.config.js b/client-report/webpack.config.js index 5f861f38d..d13c5eb71 100644 --- a/client-report/webpack.config.js +++ b/client-report/webpack.config.js @@ -2,8 +2,8 @@ const common = require('./webpack.common'); const path = require('path'); -const webpack = require("webpack"); -const CompressionPlugin = require("compression-webpack-plugin"); +const webpack = require('webpack'); +const CompressionPlugin = require('compression-webpack-plugin'); const EventHooksPlugin = require('event-hooks-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const writeHeadersJsonTask = require('./writeHeadersJsonTask'); @@ -14,6 +14,7 @@ module.exports = { output: { filename: 'report_bundle.[contenthash].js', path: path.resolve(__dirname, 'dist'), + publicPath: '/', clean: true, }, plugins: [ @@ -34,7 +35,8 @@ module.exports = { filename: 'report_style.[contenthash].css', }), new webpack.DefinePlugin({ - "process.env.NODE_ENV": JSON.stringify("production") + 'process.env.NODE_ENV': JSON.stringify('production'), + 'process.env.SERVICE_URL': null, }) ], performance: { diff --git a/client-report/webpack.dev.js b/client-report/webpack.dev.js index 6387310b6..e21cba8f2 100644 --- a/client-report/webpack.dev.js +++ b/client-report/webpack.dev.js @@ -14,6 +14,7 @@ module.exports = { output: { filename: 'report_bundle.js', path: path.resolve(__dirname, 'devel'), + publicPath: '/', }, plugins: [ ...common.plugins,