We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cssImportPaths
1 parent fa665e0 commit f36a704Copy full SHA for f36a704
packages/@tailwindcss-cli/src/commands/build/index.ts
@@ -244,7 +244,9 @@ function handleImports(
244
// Relevant specification:
245
// - CSS Import Resolve: https://csstools.github.io/css-import-resolve/
246
247
- if (!input.includes('@import')) return [input, []]
+ if (!input.includes('@import')) {
248
+ return [input, [file]]
249
+ }
250
251
return postcss()
252
.use(atImport())
@@ -254,6 +256,8 @@ function handleImports(
254
256
255
257
// Use `result.messages` to get the imported files. This also includes the
258
// current file itself.
- result.messages.filter((msg) => msg.type === 'postcss-import').map((msg) => msg.file),
259
+ [file].concat(
260
+ result.messages.filter((msg) => msg.type === 'dependency').map((msg) => msg.file),
261
+ ),
262
])
263
}
0 commit comments