SassNinja / postcss-extract-media-query

PostCSS plugin to extract all media query from CSS and emit as separate files.
MIT License
130 stars 20 forks source link

Add support for the same variable multiple times in output name #5

Closed faebeee closed 5 years ago

faebeee commented 5 years ago

Hi I've added support to for multiple placeholder replacements of the same variable name. So you can do stuff like

output: {
            path: path.join(__dirname, '..'),
            name: '[query]/[name]-[query].[ext]'
        },
SassNinja commented 5 years ago

Hi @faebeee

thanks for your PR!

Looks good so far 👍 Will test this in the evening and merge if don't find anything.

faebeee commented 5 years ago

@SassNinja Updated. Sorry for the indentions stuff, my IDE automatically changed it.

SassNinja commented 5 years ago

@faebeee thank you for your contribution!

I've released it now as v1.2.0