0.1.0-alpha.2 • Published 5 years ago
@arcana/image-loaders-preset v0.1.0-alpha.2
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 -
production
anddevelopment
.Remove Image Loader configuration if present. The plugin will automatically handles image files with file loader and url loader.
0.1.0-alpha.2
5 years ago
0.1.0-alpha.1
5 years ago