We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98158fd commit 0defa52Copy full SHA for 0defa52
packages/@tailwindcss-postcss/src/index.ts
@@ -335,7 +335,12 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
335
// We found that throwing the error will cause PostCSS to no longer watch for changes
336
// in some situations so we instead log the error and continue with an empty stylesheet.
337
console.error(error)
338
- root.removeAll()
+
339
+ if (error && typeof error === 'object' && 'message' in error) {
340
+ throw root.error(`${error.message}`)
341
+ }
342
343
+ throw root.error(`${error}`)
344
}
345
},
346
0 commit comments