-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
processor with config breaks #2
Comments
seems to be an issue of plugins in config, hex colors seems to be ok |
@alexanderniebuhr, can you provide an example of how to use this using custom config and plugin? |
@alexanderniebuhr, Thanks got the custom config part, I am facing an issue with plugin config. Here is my config provided and written in script tag of Html file.
My doubt is, how to work with require statements windicss config? here plugin should come from windicss import but how to do that in script tag of html ? |
plugins can't be used without multiple custom workarounds. Therefore, I opened the issue, so you just post the same issue I posted earlier above. |
Ok, Thanks @alexanderniebuhr got it, I thought you had a slightly different issue. Any plan to working on it? or can you guide little bit then I might also work on this issue then? |
Currently not on my priority list. |
Okay Sure. |
Hey @alexanderniebuhr, There is one general solution I am thinking but before start implementing I like to have a suggestion on what do you think about it. Here's what I am thinking...
Thanks and regards. |
/cc @antfu what do you think of that proposal? |
hI @alexanderniebuhr, Here is my implementation of in-browser windiCSS looks like (Forked windiCSS and made separate npm package) to serve IIFE of windiCSS (using rollup config). Have look at demos and share views. Would love to make PR on official windiCSS as well if you like. HTML demo link: https://codesandbox.io/s/html-windicss-live-playground-b2kbh UNPKG CDN link: https://unpkg.com/browse/windicss-with-web-api@0.2.1/ |
@MpMeetPatel Thanks so much. Ported the issue over to the core repo, to see all team's opinion of whether to merge it into core or to leave it as an additional integration maintained by the community. Hope this is all fine for you. However, if we merge it in core, I guess we would have to split parts into core and parts into this runtime-dom package. |
@alexanderniebuhr, Thanks man, I am fine with any solution which provides web-APIs via plugin or in core windicss or runtime-dom or any other. |
Yeah, you could also just open the pr for the rollup in core, and one in here to import them. But keep in mind that this might take longer than the RFC discussion :) |
@alexanderniebuhr, No problem. I will do that till then I will use my separate fork for my project. |
UPDATE: seems to be an issue of plugins in config, hex colors seems to be ok
actually do you get it in browser console aswell? if i add config to options like shown below, i get. without config everything is fine
Uncaught TypeError: can't access property "handler", e is null
source config parsed with following loading script
require(require('path').resolve(windi.config.js))
to
The text was updated successfully, but these errors were encountered: