File tree 3 files changed +23
-3
lines changed
3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = function override ( config , env ) {
2
+ if ( process . env . STAGING ) {
3
+ config . mode = "development" ;
4
+ config . optimization . minimize = false ;
5
+ config . optimization . minimizer = [ ] ;
6
+
7
+ console . log ( "I'm making a ghetto production build." ) ;
8
+ }
9
+
10
+ return config ;
11
+ } ;
Original file line number Diff line number Diff line change 25
25
"prosemirror-state" : " ^1.3.4" ,
26
26
"prosemirror-view" : " ^1.18.1" ,
27
27
"react" : " ^17.0.1" ,
28
+ "react-app-rewired" : " ^2.1.8" ,
28
29
"react-dom" : " ^17.0.1" ,
29
30
"react-git-info" : " ^2.0.0" ,
30
31
"react-json-view" : " ^1.21.3" ,
40
41
"uuid" : " ^8.3.2"
41
42
},
42
43
"scripts" : {
43
- "start" : " react-scripts start" ,
44
- "build" : " react-scripts build" ,
45
- "test" : " react-scripts test" ,
44
+ "start" : " react-app-rewired start" ,
45
+ "build:staging" : " STAGING=1 yarn build" ,
46
+ "build" : " react-app-rewired build" ,
47
+ "test" : " react-app-rewired test" ,
46
48
"eject" : " react-scripts eject"
47
49
},
48
50
"eslintConfig" : {
Original file line number Diff line number Diff line change @@ -9556,6 +9556,13 @@ react-app-polyfill@^2.0.0:
9556
9556
regenerator-runtime "^0.13.7"
9557
9557
whatwg-fetch "^3.4.1"
9558
9558
9559
+ react-app-rewired@^2.1.8:
9560
+ version "2.1.8"
9561
+ resolved "https://registry.npmjs.org/react-app-rewired/-/react-app-rewired-2.1.8.tgz#e192f93b98daf96889418d33d3e86cf863812b56"
9562
+ integrity sha512-wjXPdKPLscA7mn0I1de1NHrbfWdXz4S1ladaGgHVKdn1hTgKK5N6EdGIJM0KrS6bKnJBj7WuqJroDTsPKKr66Q==
9563
+ dependencies:
9564
+ semver "^5.6.0"
9565
+
9559
9566
react-base16-styling@^0.6.0:
9560
9567
version "0.6.0"
9561
9568
resolved "https://registry.npmjs.org/react-base16-styling/-/react-base16-styling-0.6.0.tgz#ef2156d66cf4139695c8a167886cb69ea660792c"
You can’t perform that action at this time.
0 commit comments