File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,10 @@ if (
137
137
ownNodeModules : resolveOwn ( 'node_modules' ) ,
138
138
appTypeDeclarations : resolveOwn ( `${ templatePath } /src/react-app-env.d.ts` ) ,
139
139
ownTypeDeclarations : resolveOwn ( 'lib/react-app.d.ts' ) ,
140
- serviceWorkerTemplate : resolveModule ( resolveApp , 'src/sw-template' ) ,
140
+ serviceWorkerTemplate : resolveModule (
141
+ resolveOwn ,
142
+ `${ templatePath } /src/sw-template`
143
+ ) ,
141
144
} ;
142
145
}
143
146
// @remove -on-eject-end
Original file line number Diff line number Diff line change @@ -678,7 +678,6 @@ module.exports = function(webpackEnv) {
678
678
new WorkboxWebpackPlugin . GenerateSW ( {
679
679
clientsClaim : true ,
680
680
exclude : [ / \. m a p $ / , / a s s e t - m a n i f e s t \. j s o n $ / ] ,
681
- importWorkboxFrom : 'cdn' ,
682
681
navigateFallback : paths . publicUrlOrPath + 'index.html' ,
683
682
navigateFallbackDenylist : [
684
683
// Exclude URLs starting with /_, as they're likely an API call
You can’t perform that action at this time.
0 commit comments