inline-source
Advanced tools
Comparing version 0.4.0 to 0.4.1
var path = require('path') | ||
, fs = require('fs') | ||
, uglify = require('uglify-js') | ||
, CleanCSS = require('clean-css') | ||
, csso = require('csso') | ||
, RE_INLINE_SOURCE = /^\s*?(<script.*?\sinline.*?[^<]+<\/script>)/gm | ||
@@ -60,3 +61,3 @@ , RE_INLINE_HREF = /^\s*?(<link.*?\sinline[^>]*>)/gm | ||
filecontent = isCSS | ||
? new CleanCSS().minify(filecontent) | ||
? csso.justDoIt(filecontent) | ||
: uglify.minify(filecontent, {fromString: true}).code; | ||
@@ -63,0 +64,0 @@ } catch (err) { } |
{ | ||
"name": "inline-source", | ||
"description": "Inline all flagged js & css source files", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "popeindustries <alex@pope-industries.com>", | ||
@@ -9,3 +9,3 @@ "keywords": ["inline", "html", "js", "css"], | ||
"uglify-js": "2.4.13", | ||
"clean-css": "2.1.0" | ||
"csso": "1.3.11" | ||
}, | ||
@@ -12,0 +12,0 @@ "devDependencies": { |
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
5536
+ Addedcsso@1.3.11
+ Addedcsso@1.3.11(transitive)
- Removedclean-css@2.1.0
- Removedclean-css@2.1.0(transitive)
- Removedcommander@2.1.0(transitive)