filemanager-webpack-plugin
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -9,2 +9,12 @@ 'use strict'; | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -34,2 +44,42 @@ if (!(instance instanceof Constructor)) { | ||
var toConsumableArray = function (arr) { | ||
@@ -384,3 +434,3 @@ if (Array.isArray(arr)) { | ||
if (isGlob) archive.glob(command.source);else if (sStats.isFile()) archive.file(command.source, { name: path.basename(command.source) });else if (sStats.isDirectory()) archive.directory(command.source, false); | ||
if (isGlob) archive.glob(command.source, command.options.globOptions || {});else if (sStats.isFile()) archive.file(command.source, { name: path.basename(command.source) });else if (sStats.isDirectory()) archive.directory(command.source, false); | ||
@@ -387,0 +437,0 @@ archive.finalize().then(function () { |
{ | ||
"name": "filemanager-webpack-plugin", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "This Webpack plugin allows you to copy, archive (.zip), move, delete files and directories before and after builds", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -65,2 +65,5 @@ | ||
level: 1 | ||
}, | ||
globOptions: { | ||
nomount: true | ||
} | ||
@@ -128,2 +131,2 @@ } | ||
|**`mkdir`**|Create a directory path. Think mkdir -p |mkdir: [ <br />'/path/to/directory/', '/another/path/' <br/> ] | ||
|**`archive`**|Archive individual files or entire directories. Defaults to .zip unless 'format' and 'options' provided. Uses [node-archiver](https://github.com/archiverjs/node-archiver) |archive: [<br />{ source: 'dist/bundle.js', destination: '/home/web/archive.zip'<br />format: 'tar' or 'zip'<br />options: { options passed to archiver }<br /> }<br />] | ||
|**`archive`**|Archive individual files or entire directories. Defaults to .zip unless 'format' and 'options' provided. Uses [node-archiver](https://github.com/archiverjs/node-archiver) |archive: [<br />{ source: 'dist/bundle.js', destination: '/home/web/archive.zip'<br />format: 'tar' or 'zip'<br />options: { options passed to archiver }<br /> }<br />] |
Sorry, the diff of this file is not supported yet
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
44332
131