Versioning Issue with npm run bundle #148
Replies: 2 comments
-
I had to deactivate the theme, delete it, then upload it again. And then the new styles and scripts were there. |
Beta Was this translation helpful? Give feedback.
-
Hi Vitor—Thanks for posting this, and you're very welcome! I'm happy to hear you're enjoying working with _tw. In terms of your question—and this might be a sign of a gap in the documentation—my guess is that you deployed the development version of the theme and then uploaded the zip file of the theme from The development version never needs to be uploaded to production, but if it is, you can simply delete as you described above. Do you think that could be what happened? I'm happy to discuss further if you don't think that was the case! |
Beta Was this translation helpful? Give feedback.
-
Hi Greg,
First of all, thank you for sharing your time and the result of such dedicated research with all of us.
I’m relatively new to the WP universe; my original stack is based on Next.js and React. It’s been a pleasure writing a theme using Tailwind, so thank you for that!
I’m facing an issue when generating new versions of my theme using
npm run bundle
. It seems that the generated zip file doesn’t update the styles and scripts versions with the current timestamp at the moment of bundling. For instance, I checked the style.css file inside the zipped folder, and it still shows version 0.1.0. Shouldn’t that number have changed?As a result, when I upload the zipped folder in the WP admin panel, it doesn’t recognize the version change and fails to load the new styles or scripts I’ve added.
Here’s the output I get when running npm run bundle:
If you need any additional information, please let me know.
I really appreciate your attention.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions