0.1.0-alpha.2 • Published 5 years ago

@arcana/image-loaders-preset v0.1.0-alpha.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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 and development.

  • Remove Image Loader configuration if present. The plugin will automatically handles image files with file loader and url loader.