Skip to content

Commit 270e169

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

3 files changed

Lines changed: 90 additions & 0 deletions

File tree

package-lock.json

Lines changed: 80 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@babel/core": "^7.23.2",
2929
"@babel/preset-env": "^7.23.2",
3030
"babel-loader": "^9.1.3",
31+
"copy-webpack-plugin": "^13.0.0",
3132
"css-loader": "^6.8.1",
3233
"cssnano": "^6.0.1",
3334
"cypress": "^13.3.1",

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)