Browsersync不使用Roots Sage的服务器

时间:2019-04-30 15:57:30

标签: wordpress webpack browser-sync roots-sage

我正在尝试使用Wordpress和Roots Sage开发Wordpress主题。 在我的主题文件夹中,我用

composer create-project roots/sage my-theme

输入所有配置后,我尝试使用调用yarn start的{​​{1}}开始开发构建。

Browsersync然后给我:

webpack --hide-modules --watch --config resources/assets/build/webpack.config.js

浏览器选项卡打开,但是没有任何形式的响应。该页面一直在加载。

Webpack配置([BS] [HTML Injector] Running... [Browsersync] Proxying: http://test.local [Browsersync] Access URLs: ---------------------------------------- Local: http://localhost:3000 External: http://xxx:3000 ---------------------------------------- UI: http://localhost:3001 UI External: http://xxx:3001 ---------------------------------------- [Browsersync] Watching files...

resources/assets/build/webpack.config.js

有什么想法吗? 谢谢!

1 个答案:

答案 0 :(得分:0)

有几种选择:

  • 确保您的本地环境正常运行-如果您直接访问http://test.local,则该网站应该正常运行。

  • 确保localhost指向主机文件上的127.0.0.1

  • 确保未阻塞端口3000或端口3000已被使用。

  • 同样在sage 9,配置文件位于resources / asses / config.json

相关问题