Remove Theme Source Files on Deploy


#1

Originally published at: https://roots.io/guides/remove-theme-source-files-on-deploy/

Avoid exposing your theme source files on the web by removing them during your Trellis deployments. In most scenarios, you probably don’t want someone digging into the .scss and .js files you used to build your theme. We can tell Trellis to remove the source folder for your asset builds by using the hooks in…