mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 16:36:07 +08:00
移除cdn依赖
This commit is contained in:
parent
734685d45a
commit
ee1b8a906f
|
@ -32,18 +32,9 @@ export default defineConfig({
|
|||
externals: {
|
||||
react: 'window.React',
|
||||
'react-dom': 'window.ReactDOM',
|
||||
darkreader: 'window.DarkReader',
|
||||
codemirror: 'window.CodeMirror',
|
||||
'sockjs-client': 'window.SockJS',
|
||||
},
|
||||
scripts: [
|
||||
'https://gw.alipayobjects.com/os/lib/react/16.13.1/umd/react.production.min.js',
|
||||
'https://gw.alipayobjects.com/os/lib/react-dom/16.13.1/umd/react-dom.production.min.js',
|
||||
'https://unpkg.zhimg.com/darkreader@4.9.40/darkreader.js',
|
||||
'https://unpkg.zhimg.com/codemirror@5/lib/codemirror.js',
|
||||
'https://unpkg.zhimg.com/codemirror@5/mode/shell/shell.js',
|
||||
'https://unpkg.zhimg.com/codemirror@5/mode/python/python.js',
|
||||
'https://unpkg.zhimg.com/codemirror@5/mode/javascript/javascript.js',
|
||||
'https://unpkg.zhimg.com/sockjs-client@1/dist/sockjs.min.js',
|
||||
],
|
||||
});
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
"antd": "^4.17.0-alpha.6",
|
||||
"codemirror": "^5.62.2",
|
||||
"compression-webpack-plugin": "6.1.1",
|
||||
"darkreader": "^4.9.27",
|
||||
"darkreader": "^4.9.43",
|
||||
"lint-staged": "^10.0.7",
|
||||
"@mapbox/node-pre-gyp": "1.0.8",
|
||||
"nodemon": "^2.0.4",
|
||||
|
|
Loading…
Reference in New Issue
Block a user