Comments (6)
Sounds cool, can you show more use cases to explain why?
hmm, One of use cases that I can figure out is for more prettier output.
from html-inline-css-webpack-plugin.
Glad you're interested. I'm building a vue server side rendered application. Critical styles associated with the vue components that are rendered for a given route get injected inline in the head per request. With the Vue SSR framework I can choose where the styles get injected. However, I want to inject global css into my html template at build time hence the need for html-inline-css-webpack-plugin. These global styles should appear before my component specific styles but that's not possible because this plugin always injects the styles at the very end of the head. Let me know if you need more information. Thanks for the cool plugin! I'd be happy to submit a PR for this as well.
from html-inline-css-webpack-plugin.
yeah, right, the position of style define could affect the result of style override.
PR is welcome, feel free to submit a PR 😄
from html-inline-css-webpack-plugin.
@trainiac I have implemented this feature 😆, check this
from html-inline-css-webpack-plugin.
This looks great. More flexible than what I was proposing.
I ran into one other issue trying to get this library integrated. This library deletes the asset / prevents it from being output (which makes sense since you are inlining it), which causes other vue ssr plugins to choke for some reason. I digress...
Thank you!
from html-inline-css-webpack-plugin.
@trainiac hmm, can you provide some sample code to reproduce the issue? 🤔️ We could open a new Issues to deal with it.
from html-inline-css-webpack-plugin.
Related Issues (20)
- removeLinkTag should replace all occurences of the css chunk HOT 4
- duplicated css while using webpack-dev-server HOT 5
- Multi-entry setup HOT 4
- Guard against order with `html-webpack-plugin` always triggers HOT 6
- filter function must return 'true' for css file as well as the output html file HOT 3
- Specify extracted CSS files to make internal HOT 2
- Can not inline multiple css HOT 6
- Html minification doesn't work in production mode HOT 1
- Webpack 5 support? HOT 4
- About this plugins refreshed question HOT 5
- Allow usage of nonce-attributes on generated style tag (CSP Level 2) HOT 3
- html-webpack-plugin 5 peer dep HOT 5
- Split CSS across multiple files HOT 1
- CSS files are deleted when using together with CopyWebpackPlugin HOT 8
- how to inline css file in async module? HOT 2
- Failed to inline CSS files by `options.filter` HOT 3
- How to minify the output css code HOT 1
- TypeError: html.replace is not a function HOT 2
- inline css in all html HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-inline-css-webpack-plugin.