
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
webpack-uncomment-block
Advanced tools
const UncommentBlock = require('webpack-uncomment-block');
const uncommentBlockPlugin = new UncommentBlock({
cwd: 'src/html', // 工作目录
src: '**/*.html ', // 处理文件
dest: 'prd/html', // 输出目录
pattern: 'html' // String, RegExp或者Function。默认值为'html'
});
String: 'html', 'js', 'css';预置对3种代码处理。 RegExp: 使用正则来替换注释代码。 Function: 接受一个字符串参数,该参数为文件内容,返回处理后的字符串。
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Rights Management</title>
<!-- comment-open
<link rel="stylesheet" href="/vendor.css" />
<link rel="stylesheet" href="/rights/index.css" />
-->
</head>
<body>
<div id="root">
</div>
<script src="/vendor.js"></script>
<script src="/rights/index.js"></script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Rights Management</title>
<link rel="stylesheet" href="/vendor.css" />
<link rel="stylesheet" href="/rights/index.css" />
</head>
<body>
<div id="root">
</div>
<script src="/vendor.js"></script>
<script src="/rights/index.js"></script>
</body>
</html>
FAQs
Uncomment the code block
We found that webpack-uncomment-block demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.