monaco去掉用不上的语言

This commit is contained in:
fofolee 2024-01-22 20:12:26 +08:00
parent 25f5c01541
commit c9915d4cc0

View File

@ -79,7 +79,9 @@ module.exports = configure(function(ctx) {
extensions: ['js', 'vue']
}])
chain.plugin("monaco-editor-webpack-plugin")
.use(MonacoEditorPlugin);
.use(MonacoEditorPlugin, [{
languages: ['typescript', 'html'] // 只导入js和html
}]);
chain.plugin("copy-webpack-plugin")
.use(CopyPlugin, [{
patterns: [{