Commit Graph

66 Commits

Author SHA1 Message Date
972f0d2ace
Try fixing query string stylesheets 2020-08-22 22:09:30 +02:00
Ben Zörb
7e59c3809d
Bump dependencies 2020-05-23 00:36:56 +02:00
Ben Zörb
480549442f
fix linter warnings 2020-05-20 00:32:21 +02:00
Ben Zörb
5306dcecd4
Adds test for media=print strategy 2020-05-20 00:24:00 +02:00
Ben Zörb
90ddeaaf83 fix: removed silly '> 0' boolean check (#266) 2019-11-15 23:57:15 +01:00
XhmikosR
13c65c8602 Fix typo. 2019-11-13 15:58:05 +02:00
XhmikosR
d52be4228f Replace lodash with native methods and use its packages directly.
Dropped:

* `_.forEach`
* `_.map`
* `_.reduce`
2019-11-03 17:37:43 +02:00
XhmikosR
2d529d3779 Minor tweaks.
* add `'use strict'` statements
* use template literals
2019-08-09 16:45:00 +03:00
bezoerb
8c8cf700e5 Allow to configure noscript position 2019-03-26 17:31:54 +01:00
bezoerb
c1aabd75aa fix: remove stylesheets on empty replace array 2019-01-08 05:33:19 +01:00
bezoerb
cea065d366 feature: move noscript links to end of document #139 2019-01-02 07:14:03 +01:00
Ben Zörb
e37904080a
Switched to jsdom (#240) 2018-12-30 23:41:29 +01:00
bezoerb
226bf160ea fix: prevent multiple loadcss includes 2018-12-20 07:18:51 +01:00
bezoerb
44c0cd38dd feature: compare/check already inlined styles 2018-12-19 22:32:55 +01:00
bezoerb
0870adc94e feature: drop cave in favour of postcss-discard 2018-12-19 16:40:28 +01:00
bezoerb
f813627ad0 Move tests to Jest 2018-12-18 12:51:30 +01:00
bezoerb
74fcf95a4a Add temporary fix for breaking svgs 2018-11-29 17:35:58 +01:00
bezoerb
6fa0bd56c8 Bump dependencies 2018-09-15 23:16:53 +02:00
bezoerb
184b7b0c70 fix: consider ignore passed as string 2018-09-15 23:06:59 +02:00
George
b6bd8e8c0c Support minifying extracted css (#237)
* Support minifying extracted css

* Remove broken file reference
2018-04-11 20:07:13 +02:00
midzer
fd15e22353 Remove type attribute (#236)
* Remove type attribute

from <style> element

* fix tests
2018-03-21 11:15:07 +01:00
Ben Zörb
891cfd0429 Fixes inlining if no scripts & stylesheets are present in head 2018-03-18 00:00:47 +01:00
Ben Zörb
f46d291c19 Minor tweaks 2018-03-05 21:19:29 +01:00
XhmikosR
aa4477dd6d Set the onload handler to null. (#231)
As per the loadcss docs, this actually fixes a huge issue with IE 10 and 11 I could test.
2017-12-14 23:26:59 +01:00
Thomas Paillot
5317ba2f55 Upgrade loadCSS dep to 2.0.0 and update code and make it work with this version (#229) 2017-11-29 23:01:45 +01:00
Ben Zörb
39712b80f3 bump deps 2017-05-19 23:33:21 +02:00
Ben Zörb
02b9b1915b Bump deps 2017-03-20 22:42:19 +01:00
Ben Zörb
64a176f7b7 bump xo 2016-10-17 06:38:15 +02:00
Ben Zörb
92fff6f493 Fixed tests after bump 2016-09-02 23:52:54 +02:00
Ben Zörb
4a6b61b99a fixed indent when using extract 2016-04-18 16:49:29 +02:00
Ben Zörb
f724f3f91b minor regex fix 2016-04-18 16:36:33 +02:00
Ben Zörb
388f8749b0 style tweaks 2016-04-18 07:24:12 +02:00
Ben Zörb
7ca65c184d trim empty lines in non-minified css 2016-04-18 07:19:26 +02:00
Ben Zörb
4cef19b374 handle buffer 2016-04-18 06:35:08 +02:00
Ben Zörb
3a56a2d3e2 minor fixes 2016-04-17 23:46:58 +02:00
Ben Zörb
e01d5545bb minify defaults to true 2016-04-17 00:58:04 +02:00
Ben Zörb
075999410f keep format & source order 2016-04-17 00:50:40 +02:00
Ben Zörb
839ded74d2 Update to loadcss v1.2.0 + cssrelpreload 2016-04-14 22:39:29 +02:00
Ben Zörb
0f76755b07 Update to loadcss v1.2.0 + cssrelpreload 2016-04-14 17:26:33 +02:00
Ben Zörb
b020bebf8c Add support for onloadCSS (#47) 2016-02-04 00:18:56 +01:00
Ben Zörb
ae3f2ba581 switched from jshint to xo 2015-11-13 22:59:10 +01:00
Ben Zörb
9a63dc291d Bump deps 2015-11-13 22:29:05 +01:00
Ben Zörb
5a75f6443e removed dependency to npm folder structure 2015-09-20 22:15:17 +02:00
Ben Zörb
091e509ed4 loadcss bump 2015-09-16 06:17:33 +02:00
Ben Zörb
e9c00fee13 loadCSS Tweaks
* skip loadcss initialization on empty link list
* add `selector` option to specify loadCSS before element
2015-07-10 21:55:28 +02:00
Ben Zörb
6d722abbb3 Added CLI tests & bumped loadcss version 2015-06-25 23:27:56 +02:00
Ben Zörb
606cdb4b86 CLI 2015-06-25 06:27:18 +02:00
Ben Zörb
c4e43274a8 Fix #9 2015-06-10 18:07:48 +02:00
Ben Zörb
187ecf6f06 Ignore noscript-wrapped link tags 2015-06-09 17:19:31 +02:00
Ben Zörb
e9616df148 Added ignore option 2015-06-09 07:12:09 +02:00