繁体   English   中英

如何在我的“tailwind.config.js”中添加 2 个 html 路径? 尾风css

[英]How can I add 2 html paths in my "tailwind.config.js"? Tailwindcss

这就是我的配置文件现在的样子。 (见图)

有没有机会在不同的路径上添加第二个 html 文件? 实际路径是:

content: ["public/index.html"],

是否可以添加 html 路径,如:

content: ["public/index.html; public/info/contact.html"],?

content值是一个字符串数组,因此您可以尝试:

content: ['public/index.html', 'public/info/contact.html']

您还可以使用 glob 模式来包含public下的所有文件。

content: ['./public/**/*.html']

更多信息: https://tailwindcss.com/docs/content-configuration

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM