1

I have enabled the option minify js file in admin panel setting. But after doing these, it doesn't minify any single js file. It has just changed the name of js file to the .min.js and only in webpage. Even if you check file name in FTP it's still name as .js without .min. Not understanding this Option in magento 2. How it works?

Wasiq Shahrukh
5922 gold badges6 silver badges33 bronze badges
asked Oct 25, 2017 at 11:58
2
  • Did you use the CDN or any other network delivery system? Commented Oct 25, 2017 at 12:05
  • No.. i don't use CDN all JS are in FTP only Commented Oct 25, 2017 at 14:25

1 Answer 1

0

You have run this command after setting the minify js option to yes.

php bin/magento setup:static-content:deploy

This will create minified js files.

answered Oct 26, 2017 at 10:03

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.