2019-05-06 22:34
浏览 113


My Problem is that when loading styles and js it is all traditionally done by using the add_action('wp_head') I would like to have parceljs simply watch my js and sass files and compile it to one or multiple files depending on whether they are a partial or not. I normally would use gulp but I was hoping it would be easier with a tool that's less dated.

I haven't tried anything yet because it seems that there always needs to be a entry point that's a .html file

图片转代码服务由CSDN问答提供 功能建议

我的问题是,在加载样式和js时,传统上都是使用add_action('wp_head')来完成的 想让parceljs只是看我的js和sass文件并将其编译成一个或多个文件,具体取决于它们是否是部分文件。 我通常会使用gulp,但我希望使用一个不太过时的工具会更容易。

我还没有尝试任何东西,因为它似乎总是需要一个入口点 这是一个.html文件

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答