Skip to content

Commit cef7665

Browse files
committed
🐛 fix a bug in webpack config 🔧 change external cdn source to cdn.bootcss.com
1 parent af0d154 commit cef7665

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
<meta name="Description" content="Coding WebIDE 是Coding自主研发的在线集成开发环境。用户可以通过WebIDE创建项目的工作空间,进行在线开发,调试等操作。与此同时,WebIDE
99
还提供了可分享的开发环境功能,用户可以保存当前的 Terminal 环境,分享给团队的其他成员。">
1010
<link rel="icon" type="image/x-icon" href="favicon.ico">
11-
<!--<link rel="stylesheet" href="/node_modules/codemirror/lib/codemirror.css">-->
12-
<!--<link rel="stylesheet" href="/node_modules/codemirror/theme/monokai.css">-->
13-
<script src="https://use.fontawesome.com/838df4727b.js"></script>
14-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.css">
11+
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
12+
<link rel="stylesheet" href="//cdn.bootcss.com/octicons/4.4.0/font/octicons.min.css">
1513
</head>
1614
<body>
1715
<div id="root">

webpack_configs/common.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,14 @@ module.exports = function (options={}) {
1414
staticDir = 'rs',
1515
} = options
1616

17-
let publicPath = path.join('/', staticDir)
18-
if (!publicPath.endsWith('/')) publicPath + '/'
1917
return {
2018
entry: {
2119
main: [path.join(rootDir, 'app')],
2220
workspaces: [path.join(rootDir, 'app/workspaces_standalone')],
2321
vendor: ['babel-polyfill', 'react', 'react-dom', 'redux', 'react-redux'],
2422
},
2523
output: {
26-
publicPath,
24+
publicPath: path.join('/', staticDir, '/'), // publicPath should end with '/'
2725
path: path.join(rootDir, 'build', staticDir),
2826
filename: '[name].[hash].js'
2927
},

0 commit comments

Comments
 (0)