copy-webpack-plugin
Advanced tools
Comparing version 1.1.1 to 2.0.0
@@ -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` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36693
15
127
6
328
1
+ Addedlodash@4.17.21(transitive)
- Removedlodash@3.10.1(transitive)
Updatedlodash@^4.3.0