Skip to content
Permalink
Browse files

feat: update output

  • Loading branch information...
sparanoid committed Oct 17, 2018
1 parent 1a1095c commit 057a50208a7486fa3856e2b95bbf77e3d9b877e1
Showing with 182 additions and 146 deletions.
  1. +6 −3 README.md
  2. +0 −37 appveyor.yml
  3. +120 −56 package-lock.json
  4. +5 −5 package.json
  5. +51 −45 tasks/uncss-inline.js
@@ -36,12 +36,15 @@ This plugin do the following things:
1. Search all `<style>` tags and combine all the inline CSS into one in the searching order.
2. Pass combined inline CSS to `uncss` for the cleanup.
3. Save cleaned CSS to the first `<style>` found in the DOM.
4. Remove all other deprecated `<style>` tags.
4. Remove all other processed `<style>` tags.

Basic usage for `Gruntfile.coffee`:
Example configurations for `Gruntfile.coffee` (all `uncss_inline` specific default options included):

```coffee
uncss:
uncss_inline:
options:
style_selector: 'style:not([amp-boilerplate]):not([scoped])'
dist:
files: [
expand: true

This file was deleted.

Some generated files are not rendered by default. Learn more.

@@ -34,14 +34,14 @@
"test": "grunt test"
},
"dependencies": {
"async": "^2.6.0",
"chalk": "^2.3.2",
"jsdom": "^12.0.0",
"async": "^3.0.1-0",
"chalk": "^2.4.1",
"jsdom": "^12.2.0",
"maxmin": "^2.1.0",
"uncss": "^0.16.2"
},
"devDependencies": {
"chai": "^4.1.2",
"chai": "^4.2.0",
"grunt": "^1.0.3",
"grunt-bump": "^0.8.0",
"grunt-contrib-clean": "^2.0.0",
@@ -53,7 +53,7 @@
"grunt-npm": "0.0.2",
"grunt-simple-mocha": "^0.4.1",
"load-grunt-tasks": "^4.0.0",
"mocha": "^5.0.0",
"mocha": "^5.2.0",
"time-grunt": "^1.4.0"
},
"peerDependencies": {

0 comments on commit 057a502

Please sign in to comment.
You can’t perform that action at this time.