collect-asset

1.0.0 • Public • Published

collect-asset

将符合正则规则的资源,移到指定的目录中

安装

npm install --save-dev collect-asset

使用

const CollectAsset = require('collect-asset`');
module.exports = {
  plugins: [
    new CollectAsset({
      // 输出目录:必填
      path: 'dist',
      // 子目录:非必填
      pathPrefix: '',
      // 匹配规则:必填
      regexp: /\.map$/
    }),
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i collect-asset

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.29 kB

Total Files

3

Last publish

Collaborators

  • singleparty