File tree 1 file changed +4
-5
lines changed
packages/react-scripts/config
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,7 @@ module.exports = function(webpackEnv) {
84
84
isEnvDevelopment && require . resolve ( 'style-loader' ) ,
85
85
isEnvProduction && {
86
86
loader : MiniCssExtractPlugin . loader ,
87
- options : Object . assign (
88
- { } ,
89
- shouldUseRelativeAssetPaths ? { publicPath : '../../' } : undefined
90
- ) ,
87
+ options : shouldUseRelativeAssetPaths ? { publicPath : '../../' } : { } ,
91
88
} ,
92
89
{
93
90
loader : require . resolve ( 'css-loader' ) ,
@@ -269,7 +266,9 @@ module.exports = function(webpackEnv) {
269
266
// We placed these paths second because we want `node_modules` to "win"
270
267
// if there are any conflicts. This matches Node resolution mechanism.
271
268
// https://github.com/facebook/create-react-app/issues/253
272
- modules : [ 'node_modules' , paths . appNodeModules ] . concat ( modules . additionalModulePaths || [ ] ) ,
269
+ modules : [ 'node_modules' , paths . appNodeModules ] . concat (
270
+ modules . additionalModulePaths || [ ]
271
+ ) ,
273
272
// These are the reasonable defaults supported by the Node ecosystem.
274
273
// We also include JSX as a common component filename extension to support
275
274
// some tools, although we do not recommend using it, see:
You can’t perform that action at this time.
0 commit comments