0
0

More than 1 year has passed since last update.

tailwind cssが適用されない, vercel deploy, important: true;で解決

Last updated at Posted at 2023-08-12

問題

ローカル環境ではtailwind CSSが適用されているのに、Vercelにデプロイしたらそれが適用されなくなった。

解決方法

tailwind.config.js ファイルに important: trueを追加する

module.exports = {
    important: true,  //add!
};

この1行を追加したら、Vercel側にもtailwind CSSが適用されました。

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0