-
Notifications
You must be signed in to change notification settings - Fork 70
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
import tailwind in popup html #13
Comments
Hey @Benbinbin, I have the exact same issue. Were you able to resolve it somehow? |
got it @Benbinbin! thank you! I was also able to create starter template for react (with this plugin) You can check out the boilerplate here: It's forked from here: |
same issue |
found the docs said its not a good solution that can import css as string, an then add to the document such as I used the import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import cssString from 'element-plus/dist/index.css'
const style = document.createElement('style');
document.head.append(style);
style.textContent = cssString;
createApp(App).use(ElementPlus).mount('#app') |
I have the same problem with windicss import 'virtual:windi.css' in Svelte application popup. Css generates, but not link into HTML correctly |
@reducm Thank you, that's worked for me |
@reducm I'm not using ElementPlus, but after adding the other parts of your solution I'm still not getting Tailwind imported. When I inspect the popup DOM I don't see the |
to my knowledge, the i think maybe some js code overwrite it, you code just use this code(remove other import) to see is there a style tag in head import cssString from 'someCss'
const style = document.createElement('style');
document.head.append(style);
style.textContent = cssString; |
Thanks to create this plugin.
I try to follow the tutorial Create a Chrome Extension with Vite + Vue by
Alvaro Dev Labs to build a Chrome extension with Vite+Vue+Tailwind.
But I have a problem, it seems that if I build a pupup page for Action (not the popup for content-script as the video tutorial), the tailwindcss don't work correctly, the css file can generate when build, but it can't link to the HTML correctly, maybe the difference between my situation and the video tutorial is the entry point, the content-script entry point is
js
file, and the popup page entry point is ahtml
file inmanifest.json
.the reproduce repo: https://github.com/Benbinbin/extension-vite-vue-demo
The text was updated successfully, but these errors were encountered: