添加monoca editor

This commit is contained in:
fofolee
2022-03-30 09:25:29 +08:00
parent 72d146ba3f
commit 7541449bf3
5 changed files with 242 additions and 239 deletions

View File

@@ -10,7 +10,7 @@
const ESLintPlugin = require('eslint-webpack-plugin')
const MonacoEditorPlugin = require("monaco-editor-webpack-plugin");
const { configure } = require('quasar/wrappers');
@@ -76,8 +76,9 @@ module.exports = configure(function (ctx) {
chainWebpack (chain) {
chain.plugin('eslint-webpack-plugin')
.use(ESLintPlugin, [{ extensions: [ 'js', 'vue' ] }])
}
chain.plugin("monaco-editor-webpack-plugin")
.use(MonacoEditorPlugin);
},
},
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-js#Property%3A-devServer