webpack-node-externals
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "webpack-node-externals", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Easily exclude node_modules in Webpack bundle", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -66,2 +66,3 @@ Webpack node modules externals | ||
modulesFromFile: { | ||
fileName: /* path to package.json to read from */, | ||
includeInBundle: [/* whole sections to include in the bundle, i.e 'devDependencies' */], | ||
@@ -68,0 +69,0 @@ excludeFromBundle: [/* whole sections to explicitly exclude from the bundle, i.e only 'dependencies' */] |
@@ -47,3 +47,3 @@ var fs = require('fs'); | ||
var fileName = options.fileName || 'package.json'; | ||
var packageJsonString = fs.readFileSync(path.join(process.cwd(), './' + fileName), 'utf8'); | ||
var packageJsonString = fs.readFileSync(path.resolve(process.cwd(), fileName), 'utf8'); | ||
packageJson = JSON.parse(packageJsonString); | ||
@@ -50,0 +50,0 @@ } catch (e){ |
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
13175
137