README
Image Loaders Preset
Plug n Play Configuration for webpack for loading Image Files.
This plugin generates webpack loader configuration for supporting Image files.
Usage
- Install plugin
yarn add @arcana/image-loaders-preset. - Add to your webpack config with your other plugins.
const ImageLoaders = require('@arcana/image-loaders-preset');
module.exports = {
plugins: [new ImageLoaders()],
};
Use the same code for both of your configs -
productionanddevelopment.Remove Image Loader configuration if present. The plugin will automatically handles image files with file loader and url loader.