Skip to content

Commit 63e0419

Browse files
committed
chore: fix patch css
1 parent e266b78 commit 63e0419

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

vite.config.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,8 @@ const patchCssFiles: Plugin = {
2424
name: 'patch-css',
2525
apply: 'build',
2626
writeBundle() {
27-
// 1. MonacoEditor.css -> monaco-editor.css
27+
// inject css imports to the files
2828
const outDir = path.resolve('dist')
29-
fs.renameSync(
30-
path.resolve(outDir, 'MonacoEditor.css'),
31-
path.resolve(outDir, 'monaco-editor.css'),
32-
)
33-
34-
// 2. inject css imports to the files
3529
;['vue-repl', 'monaco-editor', 'codemirror-editor'].forEach((file) => {
3630
const filePath = path.resolve(outDir, file + '.js')
3731
const content = fs.readFileSync(filePath, 'utf-8')

0 commit comments

Comments
 (0)