Remove Theme Source Files on Deploy

Originally published at:

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…

1 Like

Thank you for this, I can imagine this is something that’s easily missed along the way. If this is something that is necessary in most scenarios however, why not add it by default?