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 256dc2d commit 3d23f80Copy full SHA for 3d23f80
src/TailwindCSSRspackPlugin.ts
@@ -1,5 +1,5 @@
1
import { existsSync } from 'node:fs';
2
-import { mkdtemp, writeFile } from 'node:fs/promises';
+import { mkdir, mkdtemp, writeFile } from 'node:fs/promises';
3
import { tmpdir } from 'node:os';
4
import path from 'node:path';
5
import { pathToFileURL } from 'node:url';
@@ -213,6 +213,10 @@ class TailwindRspackPluginImpl {
213
)
214
: await mkdtemp(path.join(tmpdir(), entryName));
215
216
+ if (DEBUG) {
217
+ await mkdir(outputDir, { recursive: true });
218
+ }
219
+
220
const configPath = path.resolve(outputDir, 'tailwind.config.mjs');
221
222
const content = JSON.stringify(Array.from(entryModules));
0 commit comments