-
Notifications
You must be signed in to change notification settings - Fork 33
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
Vite support? #50
Comments
it doesn't matter which bundler you use |
@lord007tn To reproduce the problem, i've just started a new project using vuejs 3 and added tailwindcss. module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [import("tailwindcss-rtl")],
}; App.vue: <template>
<div class="flex justify-center items-center h-screen">
<div class="w-1/2 bg-blue-500 p-10">
<p class="text-2xl text-white ps-10 ms-10">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorem, vero.
Voluptatum, non minus! Ea ullam accusamus nobis iste eos, voluptates
fugiat soluta architecto. Deleniti unde, maiores vel possimus quos et.
</p>
</div>
</div>
</template> But as you can see in the image below, none of tailwindcss-rtl classes (e.g. ps-10, ms-10) are taking effect. Also in devtools these classes are not shown: |
@lord007tn Same issue as you describe in my project, any update ? found any solution ? |
You need to use |
@crswll Thanks for your reply, already try it but Vite not support |
@crswll And |
The plugin wouldn't do that. You'd need to do that yourself. |
Oh, ok I will try it and let you update. |
@crswll Ok, my LTR/RTL variable did not update correctly, thanks for this tip :) |
As vuejs 3 uses vite as default bundler, is there any way to use this package with it?
The text was updated successfully, but these errors were encountered: