mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Fix using backslashes in content globs (#5628)
* Normalize content globs * Update changelog
This commit is contained in:
parent
0b23d2e1d2
commit
484acb3f6b
@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Fix defining colors as functions when color opacity plugins are disabled ([#5470](https://github.com/tailwindlabs/tailwindcss/pull/5470))
|
||||
- Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
|
||||
- Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
|
||||
|
||||
## [2.2.16] - 2021-09-26
|
||||
|
||||
|
||||
15
src/cli.js
15
src/cli.js
@ -15,6 +15,7 @@ import fastGlob from 'fast-glob'
|
||||
import getModuleDependencies from './lib/getModuleDependencies'
|
||||
import log from './util/log'
|
||||
import packageJson from '../package.json'
|
||||
import normalizePath from 'normalize-path'
|
||||
|
||||
let env = {
|
||||
DEBUG: process.env.DEBUG !== undefined,
|
||||
@ -437,12 +438,14 @@ async function build() {
|
||||
}
|
||||
|
||||
function extractFileGlobs(config) {
|
||||
return extractContent(config).filter((file) => {
|
||||
// Strings in this case are files / globs. If it is something else,
|
||||
// like an object it's probably a raw content object. But this object
|
||||
// is not watchable, so let's remove it.
|
||||
return typeof file === 'string'
|
||||
})
|
||||
return extractContent(config)
|
||||
.filter((file) => {
|
||||
// Strings in this case are files / globs. If it is something else,
|
||||
// like an object it's probably a raw content object. But this object
|
||||
// is not watchable, so let's remove it.
|
||||
return typeof file === 'string'
|
||||
})
|
||||
.map((glob) => normalizePath(glob))
|
||||
}
|
||||
|
||||
function extractRawContent(config) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user