module-delete-loader

1.0.6 • Public • Published

1:使用方式 在js 文件中

/@type=app/ function app(){

}

// @type=app let url = '';

/@type=h5/ function app(){ }

2: 配置方法

/* webpack config / { test: /.js$/, use: [ { loader: path.resolve(__dirname, 'loaders/app-loader.js'), // 放在loader最下面或者最右边,优先执行 options: { target: 'app' // app | h5, reg: '' // 匹配要删除内容的正则 默认 /^\s?@type\s*?=\s*?h5\s*?/ig | /^\s*?@type\s*?=\s*?app\s*?/ig } } ], include: [ path.resolve(__dirname, 'src') ] }

Readme

Keywords

none

Package Sidebar

Install

npm i module-delete-loader

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

2.81 kB

Total Files

3

Last publish

Collaborators

  • biqs