Skip to content

XimalayaCloud/award-plugin-webpack-include

Repository files navigation

award-plugin-webpack-include ∙ version

自定义控制解析node_modules中一些特殊的包,和webpack的include的逻辑一致

// award.config.js
const path = require('path');

export default {
  plugins: [
    [
      'award-plugin-webpack-include',
      // include 支持函数、字符串、正则表达式、数组
      {
        // include: function (filepath) {
        //   return false;
        // }
        // include: path.join(__dirname, '..', '..', 'node_modules')
        // include: /node_modules/
        include: [
          function (filepath) {
            return false;
          },
          /test/,
          'test'
        ]
      }
    ]
  ]
};

About

基于award的自定义include插件

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published