From b8523a567d4686e68cd8de90f3b6ac82cfc9ec7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=AD=E5=B3=B6=20=E6=8B=93=E5=93=89?= Date: Mon, 28 Nov 2022 15:19:24 +0900 Subject: [PATCH 1/2] Support for rename of output files by postcss plugin. --- src/cli/build/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/build/plugin.js b/src/cli/build/plugin.js index 6b61c723eeff..1619dd38e50d 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(() => { From faf6c45aa263a549c50c0539729a87668d0d7658 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 29 Nov 2022 11:14:09 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df08d91b050e..71e59f1c2719 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