Skip to content

CSS version number (the actual file) #98

@badlydrawnrob

Description

@badlydrawnrob

The problem with this is it won't work inside // comments!
lessc allows for --global-var which could be used for build number.

You can see some problems with this method (might not allow . characters).

// current
npx lessc --clean-css=\"--s1 --advanced\" source/style/main.less ./build/style/print-first.css
// proposed addition
--global-var="cssVersion=$(npm pkg get version)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions