4

When enabling minify js and minify css within admin my storefront breaks. The markup is trying to call the minified files however these are not generated causing a lot of not found errors in browser console.

The store is in production mode and I have tried deploying static content and flushing all caches.

This is only an issue on the second store front however and the other seems to work perfectly with all js / css merged and minified correctly and generated within pub/static. For the second store front only non minified files seem to be present.

asked Jul 10, 2017 at 11:32
2
  • Is your store in Production mode. Commented Jul 10, 2017 at 11:35
  • Yeah store is set to production Commented Jul 10, 2017 at 11:36

1 Answer 1

3

Following these steps in the following order fixed the issue for me:

1. Run Setup Upgrade

bin/magento setup:upgrade

2. Run Compilation

bin/magento setup:di:compile

3. Deploy static content

bin/magento setup:static-content:deploy en_GB

answered Aug 2, 2017 at 7:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.