purgecss-webpack-plugin
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -43,16 +43,31 @@ import fs from 'fs'; | ||
function _objectSpread(target) { | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
if (i % 2) { | ||
ownKeys(source, true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -250,5 +265,24 @@ | ||
}, webpackVersion)).filter(function (v) { | ||
for (var _i = 0, _styleExtensions = styleExtensions; _i < _styleExtensions.length; _i++) { | ||
var ext = _styleExtensions[_i]; | ||
if (v.endsWith(ext)) return false; | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
try { | ||
for (var _iterator = styleExtensions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var ext = _step.value; | ||
if (v.endsWith(ext)) return false; | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
@@ -260,3 +294,3 @@ | ||
var options = _objectSpread({}, _this3.options, { | ||
var options = _objectSpread2({}, _this3.options, { | ||
content: filesToSearch, | ||
@@ -263,0 +297,0 @@ css: [{ |
@@ -47,16 +47,31 @@ 'use strict'; | ||
function _objectSpread(target) { | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
if (i % 2) { | ||
ownKeys(source, true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -254,5 +269,24 @@ | ||
}, webpackVersion)).filter(function (v) { | ||
for (var _i = 0, _styleExtensions = styleExtensions; _i < _styleExtensions.length; _i++) { | ||
var ext = _styleExtensions[_i]; | ||
if (v.endsWith(ext)) return false; | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
try { | ||
for (var _iterator = styleExtensions[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var ext = _step.value; | ||
if (v.endsWith(ext)) return false; | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
@@ -264,3 +298,3 @@ | ||
var options = _objectSpread({}, _this3.options, { | ||
var options = _objectSpread2({}, _this3.options, { | ||
content: filesToSearch, | ||
@@ -267,0 +301,0 @@ css: [{ |
{ | ||
"name": "purgecss-webpack-plugin", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Purgecss plugin for webpack - Remove unused css", | ||
@@ -42,20 +42,19 @@ "main": "./lib/purgecss-webpack-plugin.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.4.3", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.4.3", | ||
"@babel/core": "^7.6.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.5.5", | ||
"@babel/plugin-syntax-object-rest-spread": "^7.2.0", | ||
"@babel/preset-env": "^7.4.3", | ||
"@babel/preset-env": "^7.6.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^24.7.1", | ||
"babel-jest": "^24.9.0", | ||
"codacy-coverage": "^3.4.0", | ||
"css-loader": "^1.0.1", | ||
"eslint": "^5.16.0", | ||
"jest": "^24.7.1", | ||
"mini-css-extract-plugin": "^0.4.4", | ||
"prettier": "^1.17.0", | ||
"rollup": "^1.10.1", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-node-resolve": "^4.2.3", | ||
"rollup-watch": "^4.3.1", | ||
"eslint": "^6.3.0", | ||
"jest": "^24.9.0", | ||
"mini-css-extract-plugin": "^0.8.0", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.21.2", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"webpack": "^4 || ^3", | ||
@@ -65,4 +64,4 @@ "webpack-cli": "^3" | ||
"dependencies": { | ||
"purgecss": "^1.3.0", | ||
"webpack-sources": "^1.3.0" | ||
"purgecss": "^1.4.0", | ||
"webpack-sources": "^1.4.3" | ||
}, | ||
@@ -69,0 +68,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30319
19
586
Updatedpurgecss@^1.4.0
Updatedwebpack-sources@^1.4.3