copify-webpack-plugin
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -95,4 +95,12 @@ 'use strict'; | ||
if (pattern.toType === 'dir') { | ||
file.relativeFromForManifest = _path2.default.join(pattern.to, file.relativeFrom); | ||
} else if (pattern.toType === 'file') { | ||
file.relativeFromForManifest = pattern.to || file.relativeFrom; | ||
} else if (pattern.toType === 'template') { | ||
file.relativeFromForManifest = pattern.to; | ||
} | ||
if (assetsMap) { | ||
assetsMap[file.relativeFrom] = file.webpackTo; | ||
assetsMap[file.relativeFromForManifest] = file.webpackTo; | ||
} | ||
@@ -99,0 +107,0 @@ |
{ | ||
"name": "copify-webpack-plugin", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Copy files and directories in webpack, supported manifest", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
29173
409