Skip to content

Commit 0e171fd

Browse files
authored
[Oxide] Ensure generated tailwind.config.js file is formatted properly (#11221)
* ensure beginning `\n` is not removed The `\s` regex includes newlines `\n`, but we only want leading spaces to be removed. * update changelog
1 parent 764f6a1 commit 0e171fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Add `aria-busy` utility ([#10966](https://github.com/tailwindlabs/tailwindcss/pull/10966))
2020
- [Oxide] Use `lightningcss` for nesting and vendor prefixes in PostCSS plugin ([#10399](https://github.com/tailwindlabs/tailwindcss/pull/10399))
2121
- Support `@import "tailwindcss"` using top-level `index.css` file ([#11205](https://github.com/tailwindlabs/tailwindcss/pull/11205))
22-
- [Oxide] Automatically detect content paths when no `content` configuration is provided ([#11173](https://github.com/tailwindlabs/tailwindcss/pull/11173))
22+
- [Oxide] Automatically detect content paths when no `content` configuration is provided ([#11173](https://github.com/tailwindlabs/tailwindcss/pull/11173), [#11221](https://github.com/tailwindlabs/tailwindcss/pull/11221))
2323

2424
### Changed
2525

src/cli/init/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function init(args) {
4040

4141
// Drop `content` in the oxide engine to promote auto content
4242
if (__OXIDE__) {
43-
stubContentsFile = stubContentsFile.replace(/\s*content: \[\],\n/, '')
43+
stubContentsFile = stubContentsFile.replace(/ *content: \[\],\n/, '')
4444
}
4545

4646
// Change colors import

src/oxide/cli/init/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function init(args) {
3838

3939
// Drop `content` in the oxide engine to promote auto content
4040
if (__OXIDE__) {
41-
stubContentsFile = stubContentsFile.replace(/\s*content: \[\],\n/, '')
41+
stubContentsFile = stubContentsFile.replace(/ *content: \[\],\n/, '')
4242
}
4343

4444
// Change colors import

0 commit comments

Comments
 (0)