Skip to content

Commit 705d213

Browse files
Support renaming of output files by PostCSS plugin. (#9944)
* Support for rename of output files by postcss plugin. * update changelog Co-authored-by: Robin Malfait <[email protected]>
1 parent bf8f39a commit 705d213

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Cleanup unused `variantOrder` ([#9829](https://github.com/tailwindlabs/tailwindcss/pull/9829))
1818
- Fix `foo-[abc]/[def]` not being handled correctly ([#9866](https://github.com/tailwindlabs/tailwindcss/pull/9866))
1919
- Add container queries plugin to standalone CLI ([#9865](https://github.com/tailwindlabs/tailwindcss/pull/9865))
20+
- Support renaming of output files by `PostCSS` plugin. ([#9944](https://github.com/tailwindlabs/tailwindcss/pull/9944))
2021

2122
## [3.2.4] - 2022-11-11
2223

src/cli/build/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ export async function createProcessor(args, cliConfigPath) {
355355
}
356356

357357
return Promise.all([
358-
outputFile(output, result.css),
359-
result.map && outputFile(output + '.map', result.map.toString()),
358+
outputFile(result.opts.to, result.css),
359+
result.map && outputFile(result.opts.to + '.map', result.map.toString()),
360360
])
361361
})
362362
.then(() => {

0 commit comments

Comments
 (0)