Skip to content
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

Navbar does not collapse after using purifycss on bootstrap #203

Open
ghorbani-mohammad opened this issue Aug 5, 2018 · 1 comment
Open

Comments

@ghorbani-mohammad
Copy link

ghorbani-mohammad commented Aug 5, 2018

Hi, thanks for your great app. I have a website with only three pages. I use your app in this way
purifycss bootstrap.min.css home.html about.html projects.html —min —info —out bootstrap.min.purified.css

Everything is fine except my navbar that when diplay shrinks to mobile devices it does not collapse to hamburger icon. Can anyone give me a clue how to fix this problem? thanks.
My website: www.m-gh.info

@peterberweiler
Copy link

I fixed the same error by explicitly adding the bootstrap javascript file to my purifycss command.

with your command:
purifycss bootstrap.min.css home.html about.html projects.html bootstrap.js —min —info —out bootstrap.min.purified.css

boostrap also provides a collapse.js file you can use to generate an even smaller css.

here is my command:
purifycss public/styles/main.css public/index.html public/js/main.js node_modules/bootstrap/js/dist/collapse.js --min --info --out public/styles/main.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants