我运行npm运行编译并创建了dist文件夹,但是当我打开它时没有得到我的其他html文件,运行后它只显示简单的html,不包括css,并且它没有我连接到的其他文件,比如about.html contact.html。
发布于 2022-10-08 05:45:31
在src文件夹中创建input.css文件,然后构建npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch <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: [],}
https://stackoverflow.com/questions/71716033
复制相似问题