Changing theme name before build #101
Replies: 3 comments 2 replies
-
Hi Mike—Thanks for your question! I don't think it's daft, as it's not documented or really expected as a pathway. You're right that the first step is updating Which script names specifically are you finding don't have the proper names? In terms of the zip file itself, you'll find it named in your "zip": "node node_scripts/zip.js [your-theme-slug]", Please let me know if that covers everything for you! |
Beta Was this translation helpful? Give feedback.
-
Ok so in my file-header.css I have the following: /*! */ When I build the theme the outputted file is na.zip. The theme folder is called na, and of course the links in the theme files things like /na/functions.php etc.. I presume when entering details on the underscore tailwind website, I either missed a field, or wrote NA (as in not applicable). Now I can't find where I can change the theme slug. |
Beta Was this translation helpful? Give feedback.
-
Ok, I think what I'm wondering is, where is the 'theme slug' being read from? The value must be surely be stored somewhere for use at the time of the bundle. If it's stored somewhere, then it stands to reason changing that value would achieve what I want. |
Beta Was this translation helpful? Give feedback.
-
This is probably a daft question, but how/where do we change the theme slug, name etc.. that we set during the initial generation on the underscore tailwind website?
Obviously I can change the theme name for the theme in file-header.css, but I mean for the overall project to that when I run npm run bundle, I get the zip name I want, and script names I want etc..
Beta Was this translation helpful? Give feedback.
All reactions