Skip to content

SCSS files not accepting minification #30

@LoganDark

Description

@LoganDark

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions