Skip to content

Hash length placeholder is a problem with postcss #46

@frederikhors

Description

@frederikhors

This is something related to #45 (comment).

Using [hash] with postcss plugin in Rollup is impossible because it can't create file.

Example

I have this code:

postcss({
  extract: 'bundle.[hash].css' // this creates my css file
}),

which works.

If I use this instead:

postcss({
  extract: 'bundle.[hash:8].css' // this doesn't work
}),

it creates a file named bundle.[hash which is obviously wrong.

So the question:

can we change the placeholder for hash length?

Can we use something like [posthtml-hash-8] ([posthtml-hash-<LENGTH>])?

Thanks for your commitment.

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