Skip to content

Cleanup fails when cache buster is enabled #88

Open

Description

@cyberixae

BlessCSS version:

$ blessc -v
blessc 3.0.3 (CSS Post-Processor) [JavaScript]

Cleanup works (no cache buster):

$ blessc --no-cache-buster big.css target.css
blessc: Source CSS file contained 10,503 selectors. 3 CSS files created.
$ ls target*
target-blessed1.css target-blessed2.css target.css
$ blessc --no-cache-buster small.css target.css
blessc: Source CSS file contained 4,464 selectors. 2 CSS files created. Additional CSS file no longer needed. 1 additional file removed.
$ ls target*
target-blessed1.css target.css

Cleanup fails:

$ blessc big.css target.css
blessc: Source CSS file contained 10,503 selectors. 3 CSS files created.
$ ls target*
target-blessed1.css target-blessed2.css target.css
$ blessc small.css target.css
blessc: Source CSS file contained 4,464 selectors. 2 CSS files created.
$ ls target*
target-blessed1.css target-blessed2.css target.css
$ grep @import target.css
@import url('target-blessed1.css?z=1451559387818');

Activity

  1. paulyoung commented on Dec 31, 2015

    @paulyoung
    Contributor

    Hi @cyberixae, thanks for reporting this.

    Cache buster was removed in v4 for a couple of reasons. I think this is tracked by #57.

    The recommendation moving forward is to use a dedicated tool for cache-busting, in conjunction with bless. Is that an option for you?

    I'm not doing this personally so can't recommend any particular tool or setup, but #32 might be of some help there.

  2. cyberixae commented on Jan 1, 2016

    @cyberixae
    Author

    I don't need the cache buster. I just noticed this bug while I was debugging another problem. See BlessCSS/gulp-bless#20 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions