File tree 1 file changed +5
-6
lines changed
packages/react-scripts/config
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -142,16 +142,12 @@ module.exports = function (webpackEnv) {
142
142
const loaders = [
143
143
isEnvDevelopment && {
144
144
loader : require . resolve ( 'style-loader' ) ,
145
- options : process . env . REACT_APP_HF_INJECT_STYLES ? {
145
+ options : process . env . REACT_APP_INJECT_STYLES ? {
146
146
injectType : 'singletonStyleTag' ,
147
147
insert : function addToWindowObject ( element ) {
148
148
149
149
const _window = typeof window !== 'undefined' ? window : { }
150
- if ( ! _window . hfBundleStyles ) {
151
- _window . hfBundleStyles = [ ]
152
- }
153
- element . classList . add ( 'linaria-style' )
154
- _window . hfBundleStyles . push ( element )
150
+ _window [ process . env . REACT_APP_INJECT_STYLES ] = element
155
151
}
156
152
} : { } ,
157
153
} ,
@@ -232,6 +228,9 @@ module.exports = function (webpackEnv) {
232
228
}
233
229
234
230
return {
231
+ snapshot : {
232
+ unmanagedPaths : [ '/Users/rtbrown560/Code/hf-inj-react/node_modules/@fs/' ] ,
233
+ } ,
235
234
target : [ 'browserslist' ] ,
236
235
// Webpack noise constrained to errors and warnings
237
236
stats : 'errors-warnings' ,
You can’t perform that action at this time.
0 commit comments