Image deploy for using file-loader
npm install @io-arc/webpack-loaders-image@io-arc/webpack-loaders-imageImage deploy for using file-loader.
Auto insert image path to HTML, CSS and JavaScript.
See the documents.
``shell`
$ npm i @io-arc/webpack-loaders-image
`typescript
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]
}
``