laravel-frontend-presets / tailwindcss

A Tailwind CSS frontend preset for the Laravel Framework

Home Page:https://laravel-frontend-presets.github.io/tailwindcss/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deleted Bootstrap?

SturmB opened this issue · comments

Setting aside the fact that one should probably not use both Bootstrap and Tailwind at the same time, I have to ask if this preset installer is deleting Bootstrap.

After installing this preset and seeing that it completely destroys my Sass structure, I tried reverting to a commit just before installing this. Doing so, however, now shows this in my main app.scss file:

image

I don't know how to fix this. I don't know what happened at all. Is this preset just assuming that users of it wouldn't also want to use Bootstrap and just deletes it or something? How can I get it back so that this code works again?

Yeah as you can see from this file: https://github.com/laravel-frontend-presets/tailwindcss/blob/master/src/TailwindCssPreset.php#L29 it will remove bootstrap from package.json but you can easily add it back if needed. If you have already reverted the commit you should be able to run npm install && npm run dev to re-download the package.

Thank you for clarifying, @Nathanw. My project is back to working condition again, thanks. 🙂

Yep, the preset is built and installed under the assumption you're adding it to a fresh project, not trying to tack it on to an existing app.