1.1.1 • Published 1 year ago

@io-arc/webpack-loaders-image v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
1 year ago

@io-arc/webpack-loaders-image

Image deploy for using file-loader.
Auto insert image path to HTML, CSS and JavaScript.

See the documents.

Install

$ npm i @io-arc/webpack-loaders-image

Usage

import { ImageLoader, ImageMinPlugin } from '@io-arc/webpack-loaders-image'
import { DEPLOY_IMG_ARRAY } from '@io-arc/env'

export default {
  // (abbreviation)
  module: {
    rules: [ImageLoader([], DEPLOY_IMG_ARRAY, true)]
  },
  plugins: [ImageMinPlugin]
}