Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-strip-block

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-strip-block - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

index.js

@@ -7,3 +7,3 @@ /*jslint node:true */

function StripBlockLoader(content) {
var query = loaderUtils.parseQuery(this.query);
var query = this.query && typeof this.query === 'string' ? loaderUtils.parseQuery(this.query) : {};
var startComment = query.start || 'develblock:start';

@@ -10,0 +10,0 @@ var endComment = query.end || 'develblock:end';

{
"name": "webpack-strip-block",
"version": "0.1.0",
"version": "0.1.1",
"description": "Webpack plugin to strip blocks of code that's only intended for development purposes",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -48,1 +48,18 @@ Webpack Strip Block

```
### Webpack 2
```javascript
{
rules: [
{
test: /\.js$/,
enforce: 'pre',
exclude: /(node_modules|bower_components|\.spec\.js)/,
use: [
'webpack-strip-block?start=devcode:start&end=devcode:end'
]
}
]
}
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc