├── .editorconfig ├── .github └── workflows │ └── node.js.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bin └── minimalcss.js ├── index.js ├── package.json ├── scripts ├── e2e.js └── lintcheck.sh ├── src ├── run.js ├── tracker.js └── utils.js ├── tests ├── examples │ ├── 307css.html │ ├── 404css-ignore.css │ ├── 404css-ignore.html │ ├── 404css.html │ ├── README.md │ ├── comments.css │ ├── comments.html │ ├── css-in-js.css │ ├── css-in-js.html │ ├── css-in-link-tag.html │ ├── css-relative-path.html │ ├── css-variables.css │ ├── css-variables.html │ ├── dynamic-css.css │ ├── dynamic-css.html │ ├── evaluate-dom-multiple-times.css │ ├── evaluate-dom-multiple-times.html │ ├── extra-semicolons.css │ ├── extra-semicolons.html │ ├── fontface-leaves.css │ ├── fontface-leaves.html │ ├── fontface-removes-inline.html │ ├── fontface-removes.css │ ├── fontface-removes.html │ ├── form-elements.css │ ├── form-elements.html │ ├── get-params-in-url.css │ ├── get-params-in-url.html │ ├── images │ │ ├── arrow.gif │ │ ├── arrow.png │ │ ├── css-relative-path-external.css │ │ ├── css-relative-path.css │ │ └── small.jpg │ ├── inheritance-first.css │ ├── inheritance-second.css │ ├── inheritance.html │ ├── invalid-css.css │ ├── invalid-css.html │ ├── jserror.html │ ├── keyframe-leaves.css │ ├── keyframe-leaves.html │ ├── keyframe-removes-inline.html │ ├── keyframe-removes.css │ ├── keyframe-removes.html │ ├── media-queries-print.css │ ├── media-queries-print.html │ ├── media-queries.css │ ├── media-queries.html │ ├── must-skip.css │ ├── nested-selectors.css │ ├── nested-selectors.html │ ├── not-skipped.css │ ├── pseudo-classes.css │ ├── pseudo-classes.html │ ├── redirected.css │ ├── redirected.html │ ├── repeated-first.css │ ├── repeated-second.css │ ├── repeated.html │ ├── resource-hinted-css.html │ ├── skippable-stylesheets.html │ ├── slowcss.html │ ├── url-fragment.css │ ├── url-fragment.html │ ├── vendor-prefixes.css │ ├── vendor-prefixes.html │ ├── whitelist-css.css │ ├── whitelist-css.html │ └── with-timeout.html ├── main.test.js └── utils.test.js ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | yarn-error.log 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | singleQuote: true 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/README.md -------------------------------------------------------------------------------- /bin/minimalcss.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/bin/minimalcss.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/package.json -------------------------------------------------------------------------------- /scripts/e2e.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/scripts/e2e.js -------------------------------------------------------------------------------- /scripts/lintcheck.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/scripts/lintcheck.sh -------------------------------------------------------------------------------- /src/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/src/run.js -------------------------------------------------------------------------------- /src/tracker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/src/tracker.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/src/utils.js -------------------------------------------------------------------------------- /tests/examples/307css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/307css.html -------------------------------------------------------------------------------- /tests/examples/404css-ignore.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/404css-ignore.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/404css-ignore.html -------------------------------------------------------------------------------- /tests/examples/404css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/404css.html -------------------------------------------------------------------------------- /tests/examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/README.md -------------------------------------------------------------------------------- /tests/examples/comments.css: -------------------------------------------------------------------------------- 1 | /*! test css comment */ 2 | p { 3 | color: red; 4 | } 5 | -------------------------------------------------------------------------------- /tests/examples/comments.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/comments.html -------------------------------------------------------------------------------- /tests/examples/css-in-js.css: -------------------------------------------------------------------------------- 1 | .external { color: red } 2 | -------------------------------------------------------------------------------- /tests/examples/css-in-js.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/css-in-js.html -------------------------------------------------------------------------------- /tests/examples/css-in-link-tag.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/css-in-link-tag.html -------------------------------------------------------------------------------- /tests/examples/css-relative-path.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/css-relative-path.html -------------------------------------------------------------------------------- /tests/examples/css-variables.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/css-variables.css -------------------------------------------------------------------------------- /tests/examples/css-variables.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/css-variables.html -------------------------------------------------------------------------------- /tests/examples/dynamic-css.css: -------------------------------------------------------------------------------- 1 | .inline { color: red } 2 | -------------------------------------------------------------------------------- /tests/examples/dynamic-css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/dynamic-css.html -------------------------------------------------------------------------------- /tests/examples/evaluate-dom-multiple-times.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/evaluate-dom-multiple-times.css -------------------------------------------------------------------------------- /tests/examples/evaluate-dom-multiple-times.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/evaluate-dom-multiple-times.html -------------------------------------------------------------------------------- /tests/examples/extra-semicolons.css: -------------------------------------------------------------------------------- 1 | a { 2 | color: red;;; 3 | ; 4 | } 5 | -------------------------------------------------------------------------------- /tests/examples/extra-semicolons.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/extra-semicolons.html -------------------------------------------------------------------------------- /tests/examples/fontface-leaves.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/fontface-leaves.css -------------------------------------------------------------------------------- /tests/examples/fontface-leaves.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/fontface-leaves.html -------------------------------------------------------------------------------- /tests/examples/fontface-removes-inline.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/fontface-removes-inline.html -------------------------------------------------------------------------------- /tests/examples/fontface-removes.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/fontface-removes.css -------------------------------------------------------------------------------- /tests/examples/fontface-removes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/fontface-removes.html -------------------------------------------------------------------------------- /tests/examples/form-elements.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/form-elements.css -------------------------------------------------------------------------------- /tests/examples/form-elements.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/form-elements.html -------------------------------------------------------------------------------- /tests/examples/get-params-in-url.css: -------------------------------------------------------------------------------- 1 | p { 2 | background: url('./images/small.jpg?a=b'); 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/get-params-in-url.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/get-params-in-url.html -------------------------------------------------------------------------------- /tests/examples/images/arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/images/arrow.gif -------------------------------------------------------------------------------- /tests/examples/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/images/arrow.png -------------------------------------------------------------------------------- /tests/examples/images/css-relative-path-external.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/images/css-relative-path-external.css -------------------------------------------------------------------------------- /tests/examples/images/css-relative-path.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/images/css-relative-path.css -------------------------------------------------------------------------------- /tests/examples/images/small.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/images/small.jpg -------------------------------------------------------------------------------- /tests/examples/inheritance-first.css: -------------------------------------------------------------------------------- 1 | p { 2 | font-size: 10px; 3 | color: violet; 4 | } 5 | -------------------------------------------------------------------------------- /tests/examples/inheritance-second.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/inheritance-second.css -------------------------------------------------------------------------------- /tests/examples/inheritance.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/inheritance.html -------------------------------------------------------------------------------- /tests/examples/invalid-css.css: -------------------------------------------------------------------------------- 1 | $body { 2 | color: violet; 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/invalid-css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/invalid-css.html -------------------------------------------------------------------------------- /tests/examples/jserror.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/jserror.html -------------------------------------------------------------------------------- /tests/examples/keyframe-leaves.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/keyframe-leaves.css -------------------------------------------------------------------------------- /tests/examples/keyframe-leaves.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/keyframe-leaves.html -------------------------------------------------------------------------------- /tests/examples/keyframe-removes-inline.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/keyframe-removes-inline.html -------------------------------------------------------------------------------- /tests/examples/keyframe-removes.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/keyframe-removes.css -------------------------------------------------------------------------------- /tests/examples/keyframe-removes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/keyframe-removes.html -------------------------------------------------------------------------------- /tests/examples/media-queries-print.css: -------------------------------------------------------------------------------- 1 | @media print { 2 | a { color: red } 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/media-queries-print.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/media-queries-print.html -------------------------------------------------------------------------------- /tests/examples/media-queries.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/media-queries.css -------------------------------------------------------------------------------- /tests/examples/media-queries.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/media-queries.html -------------------------------------------------------------------------------- /tests/examples/must-skip.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: pink; 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/nested-selectors.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/nested-selectors.css -------------------------------------------------------------------------------- /tests/examples/nested-selectors.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/nested-selectors.html -------------------------------------------------------------------------------- /tests/examples/not-skipped.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: brown; 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/pseudo-classes.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/pseudo-classes.css -------------------------------------------------------------------------------- /tests/examples/pseudo-classes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/pseudo-classes.html -------------------------------------------------------------------------------- /tests/examples/redirected.css: -------------------------------------------------------------------------------- 1 | p { color: violet } 2 | -------------------------------------------------------------------------------- /tests/examples/redirected.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/redirected.html -------------------------------------------------------------------------------- /tests/examples/repeated-first.css: -------------------------------------------------------------------------------- 1 | p { 2 | font-size: 10px; 3 | color: violet; 4 | } 5 | -------------------------------------------------------------------------------- /tests/examples/repeated-second.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/repeated-second.css -------------------------------------------------------------------------------- /tests/examples/repeated.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/repeated.html -------------------------------------------------------------------------------- /tests/examples/resource-hinted-css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/resource-hinted-css.html -------------------------------------------------------------------------------- /tests/examples/skippable-stylesheets.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/skippable-stylesheets.html -------------------------------------------------------------------------------- /tests/examples/slowcss.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/slowcss.html -------------------------------------------------------------------------------- /tests/examples/url-fragment.css: -------------------------------------------------------------------------------- 1 | p { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /tests/examples/url-fragment.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/url-fragment.html -------------------------------------------------------------------------------- /tests/examples/vendor-prefixes.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/vendor-prefixes.css -------------------------------------------------------------------------------- /tests/examples/vendor-prefixes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/vendor-prefixes.html -------------------------------------------------------------------------------- /tests/examples/whitelist-css.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/whitelist-css.css -------------------------------------------------------------------------------- /tests/examples/whitelist-css.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/whitelist-css.html -------------------------------------------------------------------------------- /tests/examples/with-timeout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/examples/with-timeout.html -------------------------------------------------------------------------------- /tests/main.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/main.test.js -------------------------------------------------------------------------------- /tests/utils.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tests/utils.test.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/peterbe/minimalcss/HEAD/yarn.lock --------------------------------------------------------------------------------