copy vue files without transpilation for now

client-types
Divyansh Singh 8 months ago
parent 6dc0ed61e2
commit 93f7033a27

@ -1,4 +1,6 @@
import { copy } from 'fs-extra'
import { mkdist } from 'mkdist'
import { glob } from 'tinyglobby'
await mkdist({
srcDir: 'src/client',
@ -9,3 +11,10 @@ await mkdist({
ext: 'js',
pattern: '**/*.{vue,ts,css,woff2}'
})
// skip transpiling .vue files
await Promise.all(
(await glob('src/client/**/*.vue')).map((file) => {
copy(file, file.replace(/^src\//, 'dist/'))
})
)

Loading…
Cancel
Save