移除cdn依赖

This commit is contained in:
whyour 2022-01-22 20:25:22 +08:00
parent 734685d45a
commit ee1b8a906f
3 changed files with 8315 additions and 8473 deletions

View File

@ -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',
],
});

View File

@ -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",

16777
yarn.lock

File diff suppressed because it is too large Load Diff