8000
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 e266b78 commit 63e0419Copy full SHA for 63e0419
vite.config.ts
@@ -24,14 +24,8 @@ const patchCssFiles: Plugin = {
24
name: 'patch-css',
25
apply: 'build',
26
writeBundle() {
27
- // 1. MonacoEditor.css -> monaco-editor.css
+ // inject css imports to the files
28
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
35
;['vue-repl', 'monaco-editor', 'codemirror-editor'].forEach((file) => {
36
const filePath = path.resolve(outDir, file + '.js')
37
const content = fs.readFileSync(filePath, 'utf-8')
0 commit comments