-
-
Notifications
You must be signed in to change notification settings - Fork 17
Image support
EGOISTIAN edited this page Mar 10, 2016
·
3 revisions
Feel free to use import image in .js
or .css
files, tooling uses url-loader
to inline images which are smaller than 1kb as base64 code. Otherwise they will be treated as single files to the dest folder.
{
test: /\.(png|jpg|gif)$/,
loader: 'url?limit=1000&name=images/[hash].[ext]',
exclude: [/node_modules/]
}