【发布时间】:2019-10-14 20:40:08
【问题描述】:
我在 index.html 中导入 html 文件时遇到问题。
我的 package.json
{
"name": "test",
"version": "1.0.0",
"description": "test",
"author": "test",
"license": "ISC",
"dependencies": {
"del": "^3.0.0",
"i": "^0.3.6"
},
"devDependencies": {
"parcel-bundler": "^1.12.3"
},
"scripts": {
"start": "parcel src/pages/index.html"
}
}
我尝试像这样在 index.html 中包含 header.html,但没有成功。
<include src="src/pages/templates/header.html"></include>
如何在 index.html 页面上包含 html 文件?
【问题讨论】:
标签: web frontend bundler parceljs