wp-tailwindcss-theme-boilerplate
wp-tailwindcss-theme-boilerplate copied to clipboard
How to move theme to prod server
Hello, I don't know if this is the place to ask questions. I really enjoy your solution to wordpress theme development. I'm using it for a project, and I had this question on how to make it work. I run npm run prod
and it seems worked. Then send the files with FTP (ignoring node-moduls, etc) . Activate the theme and worked, unless css is not loaded. I add it mannually to the header and then work, but I'm pretty sure I'm doing something wrong.
Could it be different PHP versions?
My local development is made with varying vagrant vagrants and then use everything as you wrote it on the README file.
Again, thanks for your work
I am interested in this one too O.o @mishterk how did u do it, it wants the dist folder pls help
Ok you do the following:
-
npm i
to install all dependencies (locally) -
npm run prod
to let tailwind compile and minimize -
rm /node_modules
delete the node modules or just later not move it to your production server - copy all files (except node modules and local.json) to prod server