I was looking for a solution to add auto-prefixing while also working with SCSS files. I have all my SCSS partials compiling into a single CSS file as I'm importing them all in /assets/css/main.scss.
That change ensures the converter correctly adds auto-prefixing to the CSS file generated from /assets/css/main.scss (the final file is created at /assets/css/main.css as per usual). It seems to all be working fine, but if you're happy to help I'd love to know:
Are there any glaring problems with this approach?
Is there a better way to achieve the same result?
If no to points 1 and 2, would you consider adding that change to this gem?
Cheers for all your work on this gem, and thanks in advance for any help you're able to offer to those three questions above!
I was looking for a solution to add auto-prefixing while also working with SCSS files. I have all my SCSS partials compiling into a single CSS file as I'm importing them all in
/assets/css/main.scss
.Given this jekyll-postcss plugin only runs
Converters::PostCss
on.css
files I copied the code frompostcss.rb
directly to my_plugins
directory with one small tweak, changing this line: https://github.com/mhanberg/jekyll-postcss/blob/master/lib/jekyll/converters/postcss.rb#L21 to the following:That change ensures the converter correctly adds auto-prefixing to the CSS file generated from
/assets/css/main.scss
(the final file is created at/assets/css/main.css
as per usual). It seems to all be working fine, but if you're happy to help I'd love to know:Cheers for all your work on this gem, and thanks in advance for any help you're able to offer to those three questions above!