copify-webpack-plugin
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -112,2 +112,18 @@ 'use strict'; | ||
}); | ||
}).then(function () { | ||
if (options.manifest) { | ||
(function () { | ||
var outputPath = _path2.default.join(options.manifest.path, options.manifest.filename); | ||
var content = options.manifest.processOutput(assetsMap); | ||
compilation.assets[outputPath] = { | ||
size: function size() { | ||
return content.length; | ||
}, | ||
source: function source() { | ||
return content; | ||
} | ||
}; | ||
})(); | ||
} | ||
}).catch(function (err) { | ||
@@ -145,18 +161,2 @@ compilation.errors.push(err); | ||
if (options.manifest) { | ||
(function () { | ||
var outputPath = _path2.default.join(options.manifest.path, options.manifest.filename); | ||
var content = options.manifest.processOutput(assetsMap); | ||
compilation.assets[outputPath] = { | ||
size: function size() { | ||
return content.length; | ||
}, | ||
source: function source() { | ||
return content; | ||
} | ||
}; | ||
})(); | ||
} | ||
callback(); | ||
@@ -163,0 +163,0 @@ }); |
{ | ||
"name": "copify-webpack-plugin", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"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
28884
403