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

[sass] Canonical way to generate the ".min.css" file? #330

Open
KelSolaar opened this issue Apr 19, 2020 · 6 comments
Open

[sass] Canonical way to generate the ".min.css" file? #330

KelSolaar opened this issue Apr 19, 2020 · 6 comments

Comments

@KelSolaar
Copy link

Hi,

I'm trying the sass plugin with bootstrap Scss files and I would like to what it the canonical way to generate the bootstrap.min.css file if any.

In my targets file, I can put bootstrap.scss and it generates correctly assets/css/bootstrap.css, however, I cannot use bootstrap.min.css:

(colour-science.org-USMIstgQ-py3.7) Kali:colour-science.org kelsolaar$ nikola build
Scanning posts..........done!
ERROR: Two different tasks can't have a common target.'output/assets/css/bootstrap.min.css' is a target for copy_assets:output/assets/css/bootstrap.min.css and build_sass:output/assets/css/bootstrap.min.css.

Cheers,

Thomas

@KelSolaar KelSolaar changed the title [sass] Canonical way to generate ".min.css" file? [sass] Canonical way to generate the ".min.css" file? Apr 19, 2020
@ralsina
Copy link
Member

ralsina commented Apr 19, 2020 via email

@KelSolaar
Copy link
Author

All good and thanks Roberto! I was just checking in case I was missing something obvious!

@Kwpolska
Copy link
Member

Just sass isn’t enough to build Bootstrap, by the way. I built my Bootstrap pipeline outside of Nikola, you can steal the Node script for the second step if you want.

@KelSolaar
Copy link
Author

To generate the css files, I only needed sass and the scss directory.

@Kwpolska
Copy link
Member

Yes, but those files are not fully compatible with all browsers. The missing step is running autoprefixer.

@KelSolaar
Copy link
Author

Good to know, given everything seeming LGTM on Chrome, Firefox, Safari and IE, I don't think I will bother introducing an extra step.

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

3 participants