@io-arc/webpack-loaders-image
v1.1.1
Published
Image deploy for using file-loader
Downloads
6
Readme
@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]
}