Socket
Socket
Sign inDemoInstall

copy-webpack-plugin

Package Overview
Dependencies
7
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

2

package.json
{
"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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc