for less , it is meaningful to compile , but why js and HTML templates are also generated,

is there any significance doing that, in security and performance

1 Answer 1

  • In order for Magento to work those files need to be created at some point.
  • They can either be created at run time(when needed) or before hand.
  • The performance improvement becomes then more than obvious.
  • There is also a security improvement as creating all the files before hand will allow you to tighten up permissions on the project in a production enviorment.

More about static content deploy in the official docs https://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-static-view.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.