From 705d21397c59fb8e3161631c0e30e1bbd1d571b2 Mon Sep 17 00:00:00 2001 From: "nakajima a.k.a. nazomikan" Date: Tue, 29 Nov 2022 19:17:39 +0900 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + src/cli/build/plugin.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df08d91b0..71e59f1c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/cli/build/plugin.js b/src/cli/build/plugin.js index 6b61c723e..1619dd38e 100644 --- a/src/cli/build/plugin.js +++ b/src/cli/build/plugin.js @@ -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(() => {