File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,18 @@ module.exports = {
119
119
// allow it implicitly so we also enable it.
120
120
{
121
121
test : / \. j s o n $ / ,
122
+ exclude : / \/ m a n i f e s t .j s o n $ / ,
122
123
loader : 'json'
123
124
} ,
125
+ // A special case for manifest.json to place it into build root directory.
126
+ {
127
+ test : / \/ m a n i f e s t .j s o n $ / ,
128
+ include : [ paths . appSrc ] ,
129
+ loader : 'file' ,
130
+ query : {
131
+ name : 'manifest.json?[hash:8]'
132
+ }
133
+ } ,
124
134
// "file" loader makes sure those assets get served by WebpackDevServer.
125
135
// When you `import` an asset, you get its (virtual) filename.
126
136
// In production, they would get copied to the `build` folder.
Original file line number Diff line number Diff line change @@ -130,8 +130,18 @@ module.exports = {
130
130
// allow it implicitly so we also enable it.
131
131
{
132
132
test : / \. j s o n $ / ,
133
+ exclude : / \/ m a n i f e s t .j s o n $ / ,
133
134
loader : 'json'
134
135
} ,
136
+ // A special case for manifest.json to place it into build root directory.
137
+ {
138
+ test : / \/ m a n i f e s t .j s o n $ / ,
139
+ include : [ paths . appSrc ] ,
140
+ loader : 'file' ,
141
+ query : {
142
+ name : 'manifest.json?[hash:8]'
143
+ }
144
+ } ,
135
145
// "file" loader makes sure those assets end up in the `build` folder.
136
146
// When you `import` an asset, you get its filename.
137
147
{
You can’t perform that action at this time.
0 commit comments