Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 31bca6a

Browse files
author
June Domingo
committed
Add .gif file support
1 parent 146b4f3 commit 31bca6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default {
5252
{ test: /\.js$/, exclude: /(node_modules|bower_components)/, loader: 'babel' },
5353
{ test: /(\.css)$/, loader: 'style!css' },
5454
{ test: /\.styl$/, loader: 'style-loader!css-loader!stylus-loader' },
55-
{ test: /\.(png|jpe?g|ico)$/, loader: 'url-loader?limit=1000&name=[name].[ext]' },
55+
{ test: /\.(png|jpe?g|ico|gif)$/, loader: 'url-loader?limit=1000&name=[name].[ext]' },
5656
{ test: /\.(woff|woff2|svg|ttf|eot|otf)(\?[\s\S]+)?$/, loader: 'file-loader?limit=1000&name=[name].[ext]' }
5757
]
5858
},

webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
{ test: /\.js$/, exclude: /(node_modules|bower_components)/, loader: 'babel' },
6363
{ test: /(\.css)$/, loader: ExtractTextPlugin.extract('css?sourceMap') },
6464
{ test: /\.styl$/, loader: ExtractTextPlugin.extract('css-loader!stylus-loader') },
65-
{ test: /\.(png|jpe?g|ico)$/, loader: 'url-loader?limit=1000&name=assets/img/[name].[ext]' },
65+
{ test: /\.(png|jpe?g|ico|gif)$/, loader: 'url-loader?limit=1000&name=assets/img/[name].[ext]' },
6666
{ test: /\.(otf|woff|woff2|svg|ttf|eot)(\?[\s\S]+)?$/, loader: 'file-loader?limit=1000&name=assets/fonts/[name].[ext]' }
6767
]
6868
},

0 commit comments

Comments
 (0)