DEV Community

Discussion on: [Update] Using Svelte with Tailwindcss - A better approach

Collapse
 
sarioglu profile image
sarioglu

I'm not sure why it is happening. I will check this issue when I create the sapper template.

Collapse
 
srinivasarajui profile image
Srini Raju • Edited

I faced the same problem but fixed it with the following change.

Change line12 in postcss.config.js
from : const production = !process.env.ROLLUP_WATCH
to : const production = process.env.NODE_ENV !=='development'

Thread Thread
 
sarioglu profile image
sarioglu

Thanks for the information! In fact, using process.env.NODE_ENV in both setups would be better. However since process.env.ROLLUP_WATCH is used to determine mode in rollup.config.js, I wanted to be consistent with it. I've changed it to process.env.NODE_ENV in Sapper template.