Deploying static files
For performance, Magento 2 now generates static files from your theme and other site components. This feature is well documented in the Magento 2 dev docs, but there are some tricks to deploying and generating these files on a Webscale server.
Before deploying static files, remove any files — except the .htaccess file — in
The following should also be removed, especially when doing a production deployment.
- All folders under
Then the static files can be deployed using the following command (run from the bin directory in the Magento install).
php bin/magento setup:static-content:deploy