简体   繁体   中英

Undo rake assets:clean/precompile RAILS

I'm building a rails app with bootstrap. I was trying to change my header and ran rake assets:precompile but this changed my menu.

在此处输入图片说明

The menu is now stacked

It should look like:

在此处输入图片说明

I tried running rake assets:clean but it didn't fix it back to one line for the menu. I also tried checking out an old commit, but the problem is still there. thanks

There could be different reasons:

You may have multiple references in stylesheets to apply styles to shown menu items and both could be different. So, it would be choosing a wrong one.

OR

The wrong order of css files to be pre-compiled given in manifest file (application.css). Please do it in proper order as in this specific order the pre-compilation will be done and loaded in DOM

Hope it helps :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM