tailwindcss 3.0.16 → 3.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/lib/cli.js +9 -3
- package/package.json +3 -3
- package/peers/index.js +572 -557
- package/src/cli.js +5 -3
package/src/cli.js
CHANGED
|
@@ -437,7 +437,6 @@ async function build() {
|
|
|
437
437
|
|
|
438
438
|
function resolveConfig() {
|
|
439
439
|
let config = configPath ? require(configPath) : {}
|
|
440
|
-
let resolvedConfig = resolveConfigInternal(config)
|
|
441
440
|
|
|
442
441
|
if (args['--purge']) {
|
|
443
442
|
log.warn('purge-flag-deprecated', [
|
|
@@ -450,10 +449,13 @@ async function build() {
|
|
|
450
449
|
}
|
|
451
450
|
|
|
452
451
|
if (args['--content']) {
|
|
453
|
-
|
|
452
|
+
let files = args['--content'].split(/(?<!{[^}]+),/)
|
|
453
|
+
let resolvedConfig = resolveConfigInternal(config, { content: { files } })
|
|
454
|
+
resolvedConfig.content.files = files
|
|
455
|
+
return resolvedConfig
|
|
454
456
|
}
|
|
455
457
|
|
|
456
|
-
return
|
|
458
|
+
return resolveConfigInternal(config)
|
|
457
459
|
}
|
|
458
460
|
|
|
459
461
|
function extractFileGlobs(config) {
|