Skip to content

Commit ae14522

Browse files
committed
removed reference to swag.json
1 parent de223b2 commit ae14522

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vite.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ const copyStaticFilesPlugin = () => ({
99
closeBundle() {
1010
const distDir = join(process.cwd(), 'dist')
1111

12-
// Copy swagger.json and swag.json to dist/openapi
12+
// Copy swagger.json to dist/openapi
1313
const openapiDestDir = join(distDir, 'openapi')
1414
mkdirSync(openapiDestDir, { recursive: true })
1515
copyFileSync(
1616
join(process.cwd(), 'openapi', 'swagger.json'),
1717
join(openapiDestDir, 'swagger.json')
1818
)
19-
copyFileSync(
20-
join(process.cwd(), 'openapi', 'swag.json'),
21-
join(openapiDestDir, 'swag.json')
22-
)
23-
console.log('✓ Copied swagger.json and swag.json to dist/openapi')
19+
console.log('✓ Copied swagger.jso to dist/openapi')
2420

2521
// Copy docs folder
2622
const docsSource = join(process.cwd(), 'docs')

0 commit comments

Comments
 (0)