1.0.3 • Published 2 years ago

rollup-plugins-csc-images v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rollup 插件

处理 js 中的图片

参数

// 参数设置
options = {
  // 别名参数 默认值{}
  alias?: {
    [propName:string]: string
  },
  // 图片打包的位置 默认值: dist/assetss
  packPath?: string;
  // 排除参数 默认值: node_modules/**
  exclude?: string | RegExp;
  // 包含参数 默认值: src/**
  include?: string | RegExp;
}

使用方法

const { imageHandle } = require("rollup-plugins-csc-images");

{
  // 插件区使用 
  plugins: [
    // 里面的参数 根据自身项目添加
    imageHandle({
      packPath: 'xxxx',
      alias: {
        xx: 'xxx'
      },
    })
  ]
}
1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago