Skip to content

Commit f1f0606

Browse files
committed
distribute test json file to the radar in prod
1 parent 189b8bd commit f1f0606

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

webpack.prod.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const webpack = require('webpack')
33
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
44
const postcssPresetEnv = require('postcss-preset-env')
55
const cssnano = require('cssnano')
6+
const CopyWebpackPlugin = require('copy-webpack-plugin')
67

78
const common = require('./webpack.common.js')
89
const config = require('./src/config')
@@ -73,5 +74,13 @@ module.exports = merge(common, {
7374
new webpack.DefinePlugin({
7475
'process.env.ENVIRONMENT': JSON.stringify('production'),
7576
}),
77+
new CopyWebpackPlugin({
78+
patterns: [
79+
{
80+
from: 'spec/end_to_end_tests/resources/localfiles/radar.json',
81+
to: 'radar.json',
82+
},
83+
],
84+
}),
7685
],
7786
})

0 commit comments

Comments
 (0)