【发布时间】:2022-10-08 13:45:31
【问题描述】:
我运行 npm run build 并创建了 dist 文件夹但是当我打开时我没有得到我的其他 html 文件并且在运行之后它只显示简单的 html 不包括 css 并且它没有我连接到的其他文件比如 about.html 联系人.html
【问题讨论】:
标签: html css node.js npm tailwind-css
我运行 npm run build 并创建了 dist 文件夹但是当我打开时我没有得到我的其他 html 文件并且在运行之后它只显示简单的 html 不包括 css 并且它没有我连接到的其他文件比如 about.html 联系人.html
【问题讨论】:
标签: html css node.js npm tailwind-css
<link rel="stylesheet" href="./dist/output.css"> 包含关于和联系 html 页面然后打开
tailwind.config.js 文件并使用
module.exports = {
content: ["./*.{html,js }" ],
theme: {
extend: {},
},
plugins: [],
}
或者
module.exports = {
content: ["./contact.html", "about.html"],
theme: {
extend: {},
},
plugins: [],
}
【讨论】: