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 f0cf6bd commit bb2446eCopy full SHA for bb2446e
merge-assets.js
@@ -6,6 +6,13 @@ const deployDir = path.resolve('./_deploy/assets');
6
const cssDir = path.join(deployDir, 'styles');
7
const jsDir = path.join(deployDir, 'scripts');
8
9
+// --- Ensure directories exist ---
10
+[deployDir, cssDir, jsDir].forEach((dir) => {
11
+ if (!fs.existsSync(dir)) {
12
+ fs.mkdirSync(dir, { recursive: true });
13
+ }
14
+});
15
+
16
const mergedCssFile = path.relative(process.cwd(), path.join(cssDir, 'bundle.css'));
17
const mergedJsFile = path.relative(process.cwd(), path.join(jsDir, 'bundle.js'));
18
0 commit comments