@io-arc/webpack-loaders-image
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@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]
}

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

4.21 kB

Total Files

5

Last publish

Collaborators

  • arcone