最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

performance - How to combine javascript files without plugins?

programmeradmin2浏览0评论

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.

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.

Share Improve this question asked Jul 7, 2017 at 14:54 Luca ReghellinLuca Reghellin 1,6422 gold badges21 silver badges45 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

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.

发布评论

评论列表(0)

  1. 暂无评论