[英]How do I compile multiple css files and javascript files into one file?
I'm going through a wordpress theme building tutorial and was given a folder, https://github.com/t-hoff-94/university-static , with a JavaScript folder and a CSS folder, and also a 'bundled' file for each type that I am linking to for the actual project. 我正在阅读wordpress主题构建教程,并获得了一个文件夹https://github.com/t-hoff-94/university-static ,其中包含一个JavaScript文件夹和一个CSS文件夹,以及一个“捆绑”文件对于我为实际项目链接的每种类型。 I am trying to figure out how they compiled the code so I don't have to modify the bundled file and I can replicate the set-up. 我试图弄清楚他们是如何编译代码的,所以我不必修改捆绑的文件,并且可以复制设置。 All I want is to be able to have multiple files to organize code, and I am curious how they imported "3rd party packages". 我所希望的是能够有多个文件来组织代码,我很好奇它们是如何导入“第三方软件包”的。
I have searched for ways to do this with webpack but most of it seemed to be injecting the css into a JavaScript file, or the style tag in the heading. 我已经搜索了使用webpack做到这一点的方法,但是大多数方法似乎是将css注入JavaScript文件或标题中的style标签。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.