copy-webpack-plugin
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "copy-webpack-plugin", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Copy files and directories in webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ ## Copy Webpack Plugin | ||
Pattern properties: | ||
#### Pattern properties: | ||
* `from` | ||
@@ -41,3 +41,3 @@ - is required | ||
Available options: | ||
#### Available options: | ||
* `ignore` | ||
@@ -58,18 +58,18 @@ - an array of files and directories to ignore | ||
new CopyWebpackPlugin([ | ||
// {context}/file.txt | ||
// {output}/file.txt | ||
{ from: 'path/to/file.txt' }, | ||
// {context}/path/to/build/file.txt | ||
// {output}/path/to/build/file.txt | ||
{ from: 'path/to/file.txt', to: 'path/to/build/file.txt' }, | ||
// {context}/path/to/build/directory/file.txt | ||
// {output}/path/to/build/directory/file.txt | ||
{ from: 'path/to/file.txt', to: 'path/to/build/directory' }, | ||
// Copy directory contents to {context}/ | ||
// Copy directory contents to {output}/ | ||
{ from: 'path/to/directory' }, | ||
// Copy directory contents to {context}/path/to/build/directory | ||
// Copy directory contents to {output}/path/to/build/directory/ | ||
{ from: 'path/to/directory', to: 'path/to/build/directory' }, | ||
// {context}/file/without/extension | ||
// {output}/file/without/extension | ||
{ | ||
@@ -81,3 +81,3 @@ from: 'path/to/file.txt', | ||
// {context}/directory/with/extension.ext/file.txt | ||
// {output}/directory/with/extension.ext/file.txt | ||
{ | ||
@@ -84,0 +84,0 @@ from: 'path/to/file.txt', |
23391