201-created / ember-inline-css Goto Github PK
View Code? Open in Web Editor NEWAn Ember/Glimmer addon for inlining app CSS
License: MIT License
An Ember/Glimmer addon for inlining app CSS
License: MIT License
This module will completely break rendering of an ember app if the app has styles which have embedded SVGs which themselves contain <style> tags. Maybe those things need to be escaped? Detected somehow and generate a helpful error? This was quite difficult to track down.
Add travis or some alternative CI to this project.
Hi,
I installed this addon but immediately ran into the following issue
The Broccoli Plugin: [BroccoliMergeTrees] failed with:
Error: ENOENT: no such file or directory, open '/Users/ian/workspace/5b/b5b/tmp/cssreader-
input_base_path-zrx82clx.tmp/assets/undefined�
Is there any configuration that I need to do?
It would be useful to have more information on the README describing how to use this adodn.
CSS inlining is not working with the ember production build, it is working fine with the development build though.
Reproduction:
Tried ember-inline-css
addon in this ember addon repo (ember-scroll-preview). CSS got inlined properly in the development, but failed with the production environment (ember build --environment=production
).
Change the inlining logic to be based on file size. For example if a CSS file is 100K, it should not be inlined. If it is 4K, it should be. I suggest 40K as a reasonable cutoff.
This should also be configurable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.