Skip to content

Commit

Permalink
Support renaming of output files by PostCSS plugin. (#9944)
Browse files Browse the repository at this point in the history
* Support for rename of output files by postcss plugin.

* update changelog

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
  • Loading branch information
NakajimaTakuya and RobinMalfait committed Nov 29, 2022
1 parent bf8f39a commit 705d213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Cleanup unused `variantOrder` ([#9829](https://github.com/tailwindlabs/tailwindcss/pull/9829))
- Fix `foo-[abc]/[def]` not being handled correctly ([#9866](https://github.com/tailwindlabs/tailwindcss/pull/9866))
- Add container queries plugin to standalone CLI ([#9865](https://github.com/tailwindlabs/tailwindcss/pull/9865))
- Support renaming of output files by `PostCSS` plugin. ([#9944](https://github.com/tailwindlabs/tailwindcss/pull/9944))

## [3.2.4] - 2022-11-11

Expand Down
4 changes: 2 additions & 2 deletions src/cli/build/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ export async function createProcessor(args, cliConfigPath) {
}

return Promise.all([
outputFile(output, result.css),
result.map && outputFile(output + '.map', result.map.toString()),
outputFile(result.opts.to, result.css),
result.map && outputFile(result.opts.to + '.map', result.map.toString()),
])
})
.then(() => {
Expand Down

0 comments on commit 705d213

Please sign in to comment.