Socket
Socket
Sign inDemoInstall

wext-manifest-loader

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wext-manifest-loader - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

2

package.json
{
"name": "wext-manifest-loader",
"version": "2.4.0",
"version": "2.4.1",
"description": "Webpack loader that lets you specify `manifest.json` properties to appear only in specific browsers.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -194,3 +194,3 @@ <h1 align="center">wext-manifest-loader</h1>

### 2. How can I conditionally set keys based on enviroment
### 2. How can I conditionally set keys based on environment

@@ -201,6 +201,8 @@ ```js

"__prod__name": "NameInProduction",
"__chrome|firefox|dev__description": "DescriptionInDevelopmentForSetOfBrowsers",
"__chrome|firefox|prod__description": "DescriptionInProductionForSetOfBrowsers"
}
```
if the **NODE_ENV** is `production` this compiles to:
if the **NODE_ENV** is `production` and the **TARGET_BROWSER** is `chrome` this compiles to:

@@ -210,2 +212,3 @@ ```js

"name": "NameInProduction",
"description": "DescriptionInProductionForSetOfBrowsers"
}

@@ -219,2 +222,3 @@ ```

"name": "NameInDevelopment",
"description": "DescriptionInDevelopmentForSetOfBrowsers"
}

@@ -221,0 +225,0 @@ ```

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