Installations
npm install filter-ignore-loader
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
8.9.0
NPM Version
5.7.1
Score
67.9
Supply Chain
75.6
Quality
74.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
laomu1988
Download Statistics
Total Downloads
844
Last Day
1
Last Week
1
Last Month
4
Last Year
74
GitHub Statistics
4 Commits
2 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.0.1
Package Id
filter-ignore-loader@1.0.1
Unpacked Size
6.20 kB
Size
2.23 kB
File Count
7
NPM Version
5.7.1
Node Version
8.9.0
Total Downloads
Cumulative downloads
Total Downloads
844
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
300%
4
Compared to previous month
Last year
-54%
74
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
1
webpack打包时忽略部分文件
安装
npm install filter-ignore-loader --save-dev
配置项
- test[Array]: 匹配文件规则,匹配后文件内容将被替换为template内容。假如不配置,则所有文件都会被替换
- template: 替换后的文件内容,默认空字符串
示例
// webpack配置
const webpackConfig = {
entry: {
index: './test/index.js'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
publicPath: ''
},
module: {
rules: [{
test: /\.*.js/,
use: [
{
loader: path.resolve(__dirname, '../index'),
options: {
test: ['ignore'],
template: 'console.log("ignore-template");'
}
}
]
}]
}
};
版本记录
1.0.1
- 修复webpack4升级后this.options.context不能使用的问题
1.0.0
- 指定模板、忽略部分文件
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More