| | |
| | | // 用于构建生产环境代码的相关配置信息 |
| | | NODE_ENV: 'production', |
| | | assetsRoot: resolve('./amis-editor'), // 打包后的文件绝对路径(物理路径) |
| | | // 网络请求路径(可能也需要修改 index.html,其中有两个静态资源需要修改位置) |
| | | assetsPublicPath: '/amis-editor/', // 设置静态资源的引用路径(根域名+路径) |
| | | assetsSubDirectory: '', // 资源引用二级路径 |
| | | productionSourceMap: false, |
| | |
| | | /> |
| | | <meta http-equiv="X-UA-Compatible" content="ie=edge" /> |
| | | <title>amis-editor Demo</title> |
| | | <link rel="stylesheet" href="/static/editor/css/iconfont.css" /> |
| | | <link rel="stylesheet" href="/static/editor/css/animate.min.css" /> |
| | | <!-- 集中静态资源 --> |
| | | <link rel="stylesheet" href="/public/amis-editor/css/iconfont.css" /> |
| | | <link rel="stylesheet" href="/public/amis-editor/css/animate.min.css" /> |
| | | <link |
| | | data-react-helmet="true" |
| | | rel="shortcut icon" |