File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ module.exports = {
44
44
settings : {
45
45
'import/ignore' : [
46
46
'node_modules' ,
47
- '\\.(json|css|jpg|png|gif|eot|otf|svg|ttf|woff|woff2|mp4|webm)$' ,
47
+ '\\.(json|css|jpg|png|gif|eot|otf|webp| svg|ttf|woff|woff2|mp4|webm)$' ,
48
48
] ,
49
49
'import/extensions' : [ '.js' ] ,
50
50
'import/resolver' : {
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ module.exports = {
126
126
// When you `import` an asset, you get its (virtual) filename.
127
127
// In production, they would get copied to the `build` folder.
128
128
{
129
- test : / \. ( j p g | p n g | g i f | e o t | o t f | s v g | t t f | w o f f | w o f f 2 ) ( \? .* ) ? $ / ,
129
+ test : / \. ( j p g | p n g | g i f | e o t | o t f | w e b p | s v g | t t f | w o f f | w o f f 2 ) ( \? .* ) ? $ / ,
130
130
include : [ paths . appSrc , paths . appNodeModules ] ,
131
131
loader : 'file' ,
132
132
query : {
Original file line number Diff line number Diff line change @@ -126,17 +126,17 @@ module.exports = {
126
126
loader : ExtractTextPlugin . extract ( 'style' , 'css?-autoprefixer!postcss' )
127
127
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
128
128
} ,
129
+ // JSON is not enabled by default in Webpack but both Node and Browserify
130
+ // allow it implicitly so we also enable it.
129
131
{
130
- // JSON is not enabled by default in Webpack but both Node and Browserify
131
- // allow it implicitly so we also enable it.
132
132
test : / \. j s o n $ / ,
133
133
include : [ paths . appSrc , paths . appNodeModules ] ,
134
134
loader : 'json'
135
135
} ,
136
+ // "file" loader makes sure those assets end up in the `build` folder.
137
+ // When you `import` an asset, you get its filename.
136
138
{
137
- // "file" loader makes sure those assets end up in the `build` folder.
138
- // When you `import` an asset, you get its filename.
139
- test : / \. ( j p g | p n g | g i f | e o t | o t f | s v g | t t f | w o f f | w o f f 2 ) ( \? .* ) ? $ / ,
139
+ test : / \. ( j p g | p n g | g i f | e o t | o t f | w e b p | s v g | t t f | w o f f | w o f f 2 ) ( \? .* ) ? $ / ,
140
140
include : [ paths . appSrc , paths . appNodeModules ] ,
141
141
loader : 'file' ,
142
142
query : {
You can’t perform that action at this time.
0 commit comments