Skip to content

Commit

Permalink
fixes the report build (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
ballPointPenguin authored Nov 15, 2023
1 parent 45c1ac9 commit fc2ab63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client-report/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -14,6 +14,7 @@ module.exports = {
output: {
filename: 'report_bundle.[contenthash].js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
clean: true,
},
plugins: [
Expand All @@ -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: {
Expand Down
1 change: 1 addition & 0 deletions client-report/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
output: {
filename: 'report_bundle.js',
path: path.resolve(__dirname, 'devel'),
publicPath: '/',
},
plugins: [
...common.plugins,
Expand Down

0 comments on commit fc2ab63

Please sign in to comment.