Skip to content

perf: replace css with inline-style-parser#5

Merged
remarkablemark merged 2 commits intomasterfrom
build/package
Jun 22, 2019
Merged

perf: replace css with inline-style-parser#5
remarkablemark merged 2 commits intomasterfrom
build/package

Conversation

@remarkablemark
Copy link
Copy Markdown
Owner

@remarkablemark remarkablemark commented Jun 22, 2019

inline-style-parser is smaller and more optimized than css:

package unminified minified
css 10.8 kB 6.75 kB
inline-style-parser 5.81 kB 1.79 kB

Sources:

`inline-style-parser` is smaller and more optimized than `css`:

| package             | unminified    | minified |
| ------------------- | ------------- | -------- |
| css                 | 10.8 kB       | 6.75 kB  |
| inline-style-parser | 5.81 kB       | 1.79 kB  |

Sources:

- https://unpkg.com/css@2.2.4/lib/parse/
- https://unpkg.com/inline-style-parser@0.1.1/dist/
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 07e0561 on build/package into 44521e6 on master.

@remarkablemark remarkablemark merged commit 6ff50c2 into master Jun 22, 2019
@remarkablemark remarkablemark deleted the build/package branch June 22, 2019 23:56
remarkablemark added a commit to remarkablemark/html-react-parser that referenced this pull request Jun 24, 2019
The latest version helps decrease the library's bundle size given
the optimizations in remarkablemark/style-to-object#5:

|                | unminified    | minified |
| -------------- | ------------- | -------- |
| with css@0.2.2 | 71.3 kB       | 21.9 kB  |
| with css@0.2.3 | 67.9 kB       | 19.7 kB  |

See remarkablemark/style-to-object#5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants