yarn add parcel-plugin-url-loader --dev
or
npm i parcel-plugin-url-loader --save-dev
✨✨✨ If you have used url-loader
in webpack
, you'll feel familiar with it
{
"url-loader": {
"exts": ["jpg", "jpeg", "png", "gif"],
"limit": 10240
}
}
first of all, you should touch .parcelrc
in root path of your project
{
"url-loader": {
"exts": ["jpg", "png"],
"limit": 66666
}
}