Tailwindcss-module: HMR not working when marking changes in tailwind.config.js

Created on 25 Aug 2020  路  2Comments  路  Source: nuxt-community/tailwindcss-module

Hey guys,
I think I found a HMR bug.

Version

@nuxtjs/tailwindcss: 3.0.1
nuxt: 2.14.0

Reproduction Link

https://codesandbox.io/s/cocky-water-uc4qt?file=/pages/index.vue

I created a tailwind.config.js and set a color value. I added to the headline "The Coldest Sunset" a class "text-bug". So the headline shows in red. When you change the value to blue in the tailwind.config.js, nothing happens.

Bildschirmfoto 2020-08-25 um 12 02 58

Expected Result

Before 3.0.0 I could make changes to the tailwind.config.js and then after some time the changes are shown in dev mode. Now nothing happens. I always have to restart the dev environment (yarn dev).

Do I miss any option to enable that or is this a bug since 3.0.0?

Thank you very much for your help in advance.

Best regards
Chris

bug

Most helpful comment

All 2 comments

Wow that was fast. Thank you very much for your fast help. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

duthanhduoc picture duthanhduoc  路  7Comments

Yee1014 picture Yee1014  路  5Comments

richeduni picture richeduni  路  5Comments

othy54 picture othy54  路  6Comments

miketromba picture miketromba  路  4Comments