mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 12:20:04 +02:00
update node modules
This commit is contained in:
25
node_modules/clean-css/lib/options/plugins.js
generated
vendored
Normal file
25
node_modules/clean-css/lib/options/plugins.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
function pluginsFrom(plugins) {
|
||||
var flatPlugins = {
|
||||
level1Value: [],
|
||||
level1Property: [],
|
||||
level2Block: []
|
||||
};
|
||||
|
||||
plugins = plugins || [];
|
||||
|
||||
flatPlugins.level1Value = plugins
|
||||
.map(function (plugin) { return plugin.level1 && plugin.level1.value; })
|
||||
.filter(function (plugin) { return plugin != null; });
|
||||
|
||||
flatPlugins.level1Property = plugins
|
||||
.map(function (plugin) { return plugin.level1 && plugin.level1.property; })
|
||||
.filter(function (plugin) { return plugin != null; });
|
||||
|
||||
flatPlugins.level2Block = plugins
|
||||
.map(function (plugin) { return plugin.level2 && plugin.level2.block; })
|
||||
.filter(function (plugin) { return plugin != null; });
|
||||
|
||||
return flatPlugins;
|
||||
}
|
||||
|
||||
module.exports = pluginsFrom;
|
Reference in New Issue
Block a user