Skip to content

Commit 61069c0

Browse files
committed
added logs.
1 parent 8bc62ba commit 61069c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/module.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ export default defineNuxtModule({
4040
const source = resolve(process.cwd(), `${VUELESS_CACHE_DIR}/${VUELESS_CONFIG_FILE_NAME}.mjs`)
4141
const destination = resolve(process.cwd(), `.output/${VUELESS_CONFIG_FILE_NAME}.mjs`)
4242
const destination2 = resolve(process.cwd(), `dist/${VUELESS_CONFIG_FILE_NAME}.mjs`)
43+
const destination3 = resolve(process.cwd(), `netlify/${VUELESS_CONFIG_FILE_NAME}.mjs`)
4344

4445
const outputDir = resolve(process.cwd(), `.output`)
4546
const distDir = resolve(process.cwd(), `dist`)
47+
const netlifyDir = resolve(process.cwd(), `netlify`)
4648

4749
console.log('source', source)
4850
console.log('destination', destination)
4951
console.log('existsSync(source)', existsSync(source))
5052

5153
console.log('existsSync(.output)', existsSync(outputDir))
5254
console.log('existsSync(dist)', existsSync(distDir))
55+
console.log('existsSync(netlifyDir)', existsSync(netlifyDir))
5356

5457
if (existsSync(source) && existsSync(outputDir)) {
5558
copyFileSync(source, destination)
@@ -58,6 +61,10 @@ export default defineNuxtModule({
5861
if (existsSync(source) && existsSync(distDir)) {
5962
copyFileSync(source, destination2)
6063
}
64+
65+
if (existsSync(source) && existsSync(netlifyDir)) {
66+
copyFileSync(source, destination3)
67+
}
6168
})
6269

6370
/* Generate tailwind safelist before module installed */

0 commit comments

Comments
 (0)