mhanberg / jekyll-postcss

A plugin to use PostCSS plugins like Autoprefixer or Tailwind CSS with Jekyll.
MIT License
66 stars 12 forks source link

SCSS files not accepting minification #30

Open LoganDark opened 3 years ago

LoganDark commented 3 years ago

Hello, I'm currently using jekyll-postcss to use Tailwind in a Jekyll project. It's working really well with .css files, in fact it's working perfectly, but there are issues when trying to use a .scss file.

If I use a .scss file, then Tailwind will still work, but a source map will be generated even in production and minifier plugins like cssnano won't work.

Observe, .css: image

.scss: image image

Changing only the extension causes this radical shift in behavior. Of course, I don't want to use an unminified CSS file like this in production so I will have to stick to .css for now.

Do you have any idea what could be causing this issue, and if so, how to fix it? Is this my fault or Jekyll's or jekyll-postcss's?