Socket
Socket
Sign inDemoInstall

copy-webpack-plugin

Package Overview
Dependencies
19
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 2.0.0

dist/index.js

20

CHANGELOG.md

@@ -0,6 +1,14 @@

## 2.0.0 (Apr 14, 2016)
* Several bug fixes
* Added support for webpack-dev-server
* `from` now accepts glob options
* Added `copyUnmodified` option
## 1.1.1 (Jan 25, 2016)
* `to` absolute paths are now tracked by webpack
* Reverted dot matching default for minimatch
* Params can now be passed to the `ignore` option
* `to` absolute paths are now tracked by webpack
* Reverted dot matching default for minimatch
* Params can now be passed to the `ignore` option

@@ -10,5 +18,5 @@

* Added globbing support for `from`
* Added absolute path support for `to`
* Changed default for minimatch to match dots for globs
* Added globbing support for `from`
* Added absolute path support for `to`
* Changed default for minimatch to match dots for globs

@@ -15,0 +23,0 @@

{
"name": "copy-webpack-plugin",
"version": "1.1.1",
"version": "2.0.0",
"description": "Copy files and directories in webpack",
"main": "index.js",
"main": "dist/index.js",
"repository": {

@@ -24,3 +24,3 @@ "type": "git",

"glob": "^6.0.4",
"lodash": "^3.10.1",
"lodash": "^4.3.0",
"minimatch": "^3.0.0",

@@ -30,8 +30,17 @@ "node-dir": "^0.1.10"

"scripts": {
"test": "node ./node_modules/mocha/bin/mocha"
"lint": "pragmatist lint",
"watch-lint": "pragmatist watch-lint",
"test": "pragmatist --es5 --type-assertions test",
"watch-test": "pragmatist --es5 --type-assertions watch-test",
"build": "pragmatist --es5 build",
"watch-build": "pragmatist --es5 watch-build"
},
"devDependencies": {
"chai": "^3.4.0",
"mocha": "^2.3.4"
"eslint": "^2.7.0",
"eslint-plugin-jsdoc": "^2.3.1",
"eslint-plugin-lodash": "^1.6.5",
"eslint-plugin-react": "^4.3.0",
"pragmatist": "^3.0.21"
}
}

@@ -54,2 +54,7 @@ ## Copy Webpack Plugin

context: path.join(__dirname, 'app'),
devServer: {
// This is required for webpack-dev-server. The path should
// be an absolute path to your build destination.
outputPath: path.join(__dirname, 'build')
},
plugins: [

@@ -74,2 +79,11 @@ new CopyWebpackPlugin([

{ from: 'from/directory/**/*', to: '/absolute/path' },
// Copy glob results (with dot files) to /absolute/path/
{
from: {
glob:'from/directory/**/*',
dot: true
},
to: '/absolute/path'
},

@@ -96,3 +110,8 @@ // {output}/file/without/extension

{ glob: '**/*', dot: true }
]
],
// By default, we only copy modified files during
// a watch or webpack-dev-server build. Setting this
// to `true` copies all files.
copyUnmodified: true // defaults to false
})

@@ -105,3 +124,3 @@ ]

[![Build Status](https://drone.io/github.com/kevlened/copy-webpack-plugin/status.png)](https://drone.io/github.com/kevlened/copy-webpack-plugin/latest)
[![Build Status](https://travis-ci.org/kevlened/copy-webpack-plugin.svg?branch=master)](https://travis-ci.org/kevlened/copy-webpack-plugin)

@@ -108,0 +127,0 @@ Run `npm test`

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