简体   繁体   中英

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

This is, how my config file is right now. (see picture)

Is there any chance, to add a second html file on a different path? The actual path is:

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

Is it possible to add a html path like:

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

The content value is an array of strings, so you might try:

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

You could also use the glob pattern to include all files under public .

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

More information: https://tailwindcss.com/docs/content-configuration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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