Do I delete bower components directory from WP theme prior to upload?

wordpress

#1

Do I delete bower components directory from WP theme prior to upload?


#2

I cannot understand your question.

Can you please explain a little further?

Thank You.


#3

I am asking, in my theme which is built using npm, bower, gulp, Scss and therefore has a directory (folder) titled bower_components which is 9.3mb (and also node_modules directory which is 90mb) should these directories be removed from theme prior to upload?


#4

I usually don’t distribute themes with those folders packaged. If you compile your sass, less, javascript etc they are unnecessary. I think you should leave the package.json, Gruntfile.js and bower.json there so that if anyone needs the packages they can just install them.


#5

Thank you Franklin!