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 <malfait.robin@gmail.com>
This commit is contained in:
nakajima a.k.a. nazomikan 2022-11-29 19:17:39 +09:00 • committed by GitHub
parent bf8f39a4db
commit 705d21397c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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(() => {