Skip to content

Commit 04fa848

Browse files
author
Dmitry Yadrikhinsky
committed
Add antd theme config
1 parent 955f123 commit 04fa848

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.erb/configs/webpack.config.renderer.prod.babel.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ import DeleteSourceMaps from '../scripts/DeleteSourceMaps';
1616
CheckNodeEnv('production');
1717
DeleteSourceMaps();
1818

19-
const devtoolsConfig = process.env.DEBUG_PROD === 'true' ? {
20-
devtool: 'source-map'
21-
} : {};
19+
const devtoolsConfig =
20+
process.env.DEBUG_PROD === 'true'
21+
? {
22+
devtool: 'source-map',
23+
}
24+
: {};
2225

2326
export default merge(baseConfig, {
2427
...devtoolsConfig,
@@ -64,6 +67,10 @@ export default merge(baseConfig, {
6467
loader: 'less-loader',
6568
options: {
6669
lessOptions: {
70+
modifyVars: {
71+
'primary-color': 'purple',
72+
'border-radius-base': '5px',
73+
},
6774
javascriptEnabled: true,
6875
},
6976
},
@@ -140,13 +147,12 @@ export default merge(baseConfig, {
140147

141148
optimization: {
142149
minimize: true,
143-
minimizer:
144-
[
145-
new TerserPlugin({
146-
parallel: true,
147-
}),
148-
new CssMinimizerPlugin(),
149-
],
150+
minimizer: [
151+
new TerserPlugin({
152+
parallel: true,
153+
}),
154+
new CssMinimizerPlugin(),
155+
],
150156
},
151157

152158
plugins: [

0 commit comments

Comments
 (0)