Necromancers Playing MTG

    pitch-loader

    1.0.0 • Public • Published

    pitch-loader

    暴露loader pitch,用于调整loaders或者根据条件删减部分loader

    配置

    {
      loader: 'pitch-loader',
      options: {
        /**
         * 
         * @param {Array} args - pitch原参数
         * @param {Object} ext - 额外补充
         * @param {String} ext.filename - 源文件名
         * @param {Object} ext.context - this
         */
        pitch(args, ext) {
          this.loaders = this.loaders.filter(() => true)
        }
      }
    }

    Keywords

    Install

    npm i pitch-loader

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    1.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • singleparty