copify-webpack-plugin
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -87,6 +87,12 @@ 'use strict'; | ||
if (assetsMap && !pattern.excludeFromManifest) { | ||
var manifestFrom = _path2.default.relative(pattern.realContext, file.absoluteFrom); | ||
if (assetsMap && !pattern.excludeFromManifest && pattern.fromType !== 'nonexistent') { | ||
var manifestTo = file.webpackTo; | ||
var manifestFrom = null; | ||
if (pattern.fromType === 'dir' || pattern.fromType === 'file') { | ||
manifestFrom = _path2.default.join(_path2.default.dirname(manifestTo), _path2.default.basename(file.relativeFrom)); | ||
} else if (pattern.fromType === 'glob') { | ||
manifestFrom = file.relativeFrom; | ||
} | ||
if (pattern.manifestBasePath) { | ||
@@ -93,0 +99,0 @@ manifestFrom = _path2.default.join(pattern.manifestBasePath, manifestFrom); |
{ | ||
"name": "copify-webpack-plugin", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Copy files and directories in webpack, supported manifest", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
30048
421