Skip to content

Batch mode exclude files #51

Closed
Closed
@XhmikosR

Description

@XhmikosR

@jakubpawlowicz I'm experimenting with the --batch option which seems exactly what we need on Bootstrap.

The problem I have is that I'm not sure how to exclude files. Currently we have all of our CSS files in one dir:

bootstrap-grid.css
bootstrap-grid.min.css
bootstrap-grid.rtl.css
bootstrap-grid.rtl.min.css
bootstrap-reboot.css
bootstrap-reboot.min.css
bootstrap-reboot.rtl.css
bootstrap-reboot.rtl.min.css
bootstrap-utilities.css
bootstrap-utilities.min.css
bootstrap-utilities.rtl.css
bootstrap-utilities.rtl.min.css
bootstrap.css
bootstrap.min.css
bootstrap.rtl.css
bootstrap.rtl.min.css

I tried excluding the files that end with *.min.css but it doesn't work:

cleancss -O1 --format breakWith=lf --source-map --source-map-inline-sources --output dist/css/ --batch --batch-suffix ".min" "dist/css/*.css" "!dist/css/*.min.css"
WARNING: Invalid character(s) '/*.min.css);' at 1:21. Ignoring.
internal/fs/utils.js:307
    throw err;
    ^

Error: ENOENT: no such file or directory, open '!dist/css/*.min.min.css'

Am I maybe missing something?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions