docs: 修复页面报错

This commit is contained in:
吴多益 2021-09-17 23:16:09 +08:00 committed by GitHub
parent e6ebd07c75
commit 4340b76285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,8 @@ SDK 版本适合对前端或 React 不了解的开发者,它不依赖 npm 及
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<link rel="stylesheet" href="sdk.css" />
<link rel="stylesheet" href="helper.css" />
<link rel="stylesheet" href="iconfont.css" /> <!-- 这是默认主题所需的,如果是其他主题则不需要 -->
<link rel="stylesheet" href="iconfont.css" />
<!-- 这是默认主题所需的,如果是其他主题则不需要 -->
<!-- 从 1.1.0 开始 sdk.css 将不支持 IE 11如果要支持 IE11 请引用这个 css并把前面那个删了 -->
<!-- <link rel="stylesheet" href="sdk-ie11.css" /> -->
<!-- 不过 amis 开发团队几乎没测试过 IE 11 下的效果,所以可能有细节功能用不了,如果发现请报 issue -->
@ -351,21 +352,9 @@ module.exports = {
resolve: {
extensions: ['.tsx', '.ts', '.js', '.html']
},
devtool: 'inline-source-map',
devServer: {
contentBase: path.join(__dirname, 'dist'),
publicPath: path.join(__dirname, 'dist'),
compress: true,
port: 9000,
hot: true,
proxy: {
'/api': 'http://localhost:3000'
}
},
output: {
filename: '[name].bundle.js',
publicPath: '/',
path: path.resolve(__dirname, 'dist')
publicPath: '/'
}
};
```