webpack-strip-block
Advanced tools
Comparing version 0.0.1 to 0.0.3
16
index.js
@@ -6,12 +6,16 @@ /*jslint node:true */ | ||
this.startComment = 'develblock:start'; | ||
this.endComment = 'develblock:end'; | ||
var startComment = 'develblock:start'; | ||
var endComment = 'develblock:end'; | ||
this.regexPattern = new RegExp("[\\t ]*\\/\\* ?" + this.startComment + " ?\\*\\/[\\s\\S]*?\\/\\* ?" + this.endComment + " ?\\*\\/[\\t ]*\\n?", "g"); | ||
var regexPattern = new RegExp("[\\t ]*\\/\\* ?" + startComment + " ?\\*\\/[\\s\\S]*?\\/\\* ?" + endComment + " ?\\*\\/[\\t ]*\\n?", "g"); | ||
content = content.replace(this.regexPattern, ''); | ||
content = content.replace(regexPattern, ''); | ||
this.callback(null, content); | ||
if (this.cacheable) { | ||
this.cacheable(true); | ||
} | ||
return content; | ||
} | ||
module.exports = StripBlockLoader; | ||
module.exports = StripBlockLoader; |
{ | ||
"name": "webpack-strip-block", | ||
"version": "0.0.1", | ||
"version": "0.0.3", | ||
"description": "Webpack plugin to strip blocks of code that's only intended for development purposes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ Webpack Strip Block |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2944
13
0