Created
May 31, 2018 05:00
-
-
Save jsartisan/9a01b00be8ccc6d27fe27fec8b66cb62 to your computer and use it in GitHub Desktop.
Adding Image Loader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let imageLoaders = [ | |
{ | |
loader: 'url-loader', | |
options: { | |
limit: 5000000, | |
}, | |
}, | |
]; | |
const config = { | |
// ... | |
module: { | |
rules: [ | |
// ... | |
{ | |
test: /\.(png|jpg|jpeg|svg)$/, | |
use: imageLoaders, | |
}, | |
], | |
}, | |
// ... | |
}; | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment