webpack-node-externals
Advanced tools
Comparing version 1.3.3 to 1.4.3
@@ -46,3 +46,3 @@ var fs = require("fs"); | ||
// in case absolute, strip all parts before */modulesDir/ | ||
req = req.replace(/^\/.*?node_modules\//, ''); | ||
req = req.replace(/^.*?\/node_modules\//, ''); | ||
// return the module name | ||
@@ -49,0 +49,0 @@ return req.split('/')[0]; |
{ | ||
"name": "webpack-node-externals", | ||
"version": "1.3.3", | ||
"version": "1.4.3", | ||
"description": "Easily exclude node_modules in Webpack bundle", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ Webpack node modules externals | ||
When bundling with Webpack for the backend - you usually wouldn't want to bundle its `node_modules` dependencies. | ||
When bundling with Webpack for the backend - you usually don't want to bundle its `node_modules` dependencies. | ||
This library creates an *externals* function that ignores `node_modules` when bundling in Webpack.<br/>(Inspired by the great [Backend apps with Webpack](http://jlongster.com/Backend-Apps-with-Webpack--Part-I) series) | ||
@@ -14,0 +14,0 @@ |
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
8438