I remember (it seems…) there was a way, maybe some config option, to combine/merge javascript files (for production sites). I mean just with vanilla wordpress code, not plugins.

Am I wrong? If not, how to? Can’t find reliable infos.

1 Answer
1

I prefer separete all my front-end assets from the back-end, so I use Gulp to manage (compile, mifify etc..) all my assets.

But if you want to use WordPress I found this article. I did not test the code, but by just reading and seeing the comment section I think that will work for you.

But I really recommend you to use something Like Gulp, Webpack or Yarn to manage your front-end assets.

Leave a Reply

Your email address will not be published. Required fields are marked *