mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-25 19:52:48 +00:00
Fix: unable to edit python code files (https://github.com/cloudreve/Cloudreve/issues/748)
This commit is contained in:
parent
68dc674577
commit
21c3082ba8
|
|
@ -534,7 +534,7 @@ module.exports = function(webpackEnv) {
|
|||
// Monaco 代码编辑器
|
||||
new MonacoWebpackPlugin({
|
||||
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
|
||||
languages: ['json',"php","bat","cpp","csharp","css","dockerfile","go","html","ini","java","javascript","less","lua","shell","sql","xml","yaml"]
|
||||
languages: ['json',"php","bat","cpp","csharp","css","dockerfile","go","html","ini","java","javascript","less","lua","shell","sql","xml","yaml","python"]
|
||||
}),
|
||||
// 写入版本文件
|
||||
new CopyPlugin([
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export const editSuffix = ["md", "txt"];
|
|||
export const codePreviewSuffix = {
|
||||
json: "json",
|
||||
php: "php",
|
||||
py: "python",
|
||||
bat: "bat",
|
||||
cpp: "cpp",
|
||||
c: "cpp",
|
||||
|
|
|
|||
Loading…
Reference in New Issue