You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

webpack-cleanup-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-cleanup-plugin - npm Package Compare versions

Comparing version

to
0.5.0

8

CHANGELOG.md
# Changelog
## [v0.5.0](https://github.com/gpbl/webpack-cleanup-plugin/tree/v0.5.0) (2017-02-27)
* Add support for relative output paths ([#23](https://github.com/gpbl/webpack-cleanup-plugin/pull/23) by [bassarisse](https://github.com/bassarisse) and [#28](https://github.com/gpbl/webpack-cleanup-plugin/pull/28) by [x-yuri](https://github.com/x-yuri)).
## [v0.4.2](https://github.com/gpbl/webpack-cleanup-plugin/tree/v0.4.2) (2017-02-10)
* Fixed an issue with Windows ([#25](https://github.com/gpbl/webpack-cleanup-plugin/pull/25) by [foxbunny](https://github.com/foxbunny)).
* Fixed [a compatibility issue](https://github.com/gpbl/webpack-cleanup-plugin/pull/20) with Windows ([#25](https://github.com/gpbl/webpack-cleanup-plugin/pull/25) by [foxbunny](https://github.com/foxbunny)).

@@ -28,2 +32,2 @@ ## [v0.4.1](https://github.com/gpbl/webpack-cleanup-plugin/tree/v0.4.1) (2016-10-13)

* Error when initializing the plugin without options (#1, #6)
* Directories were no cleaned up recursively (#2, #5)
* Directories were no cleaned up recursively (#2, #5)

@@ -25,12 +25,6 @@ 'use strict';

var npath = _path2.default.normalize(fromPath);
var files = (0, _recursiveReaddirSync2.default)(npath).map(function (p) {
return p.substr(npath.length + 1);
}) // get files relative to fromPath
.filter(function (file) {
var files = (0, _recursiveReaddirSync2.default)(fromPath).filter(function (file) {
return exclude.every(function (excluded) {
return !(0, _minimatch2.default)(file, _path2.default.join(excluded), { dot: true });
return !(0, _minimatch2.default)(_path2.default.relative(fromPath, file), _path2.default.join(excluded), { dot: true });
});
}).map(function (file) {
return _path2.default.join(npath, file);
});

@@ -37,0 +31,0 @@ return files;

{
"name": "webpack-cleanup-plugin",
"version": "0.4.2",
"version": "0.5.0",
"description": "Plugin for webpack to cleanup extraneous files from the output path directory",

@@ -31,4 +31,4 @@ "main": "./lib/WebpackCleanupPlugin.js",

"devDependencies": {
"babel-cli": "^6.22.2",
"babel-core": "^6.22.1",
"babel-cli": "^6.23.0",
"babel-core": "^6.23.1",
"babel-eslint": "^7.1.1",

@@ -38,3 +38,3 @@ "babel-preset-es2015": "^6.22.0",

"chai": "3.5.0",
"eslint": "^3.15.0",
"eslint": "^3.16.1",
"eslint-config-airbnb": "^14.1.0",

@@ -44,5 +44,5 @@ "eslint-config-gpbl": "1.0.2",

"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.9.0",
"eslint-plugin-react": "^6.10.0",
"mocha": "^3.2.0",
"rimraf": "2.5.4",
"rimraf": "^2.6.1",
"sinon": "^1.17.7",

@@ -49,0 +49,0 @@ "sinon-chai": "2.8.0",

@@ -36,3 +36,3 @@ # webpack-cleanup-plugin

output: {
path: "/my/output/path" // absolute path
path: "/my/output/path"
},

@@ -39,0 +39,0 @@ // ...

Sorry, the diff of this file is not supported yet