Themekit,Browsersync和Shopify

问题描述

我有关于Shopify的主题包和浏览器同步的问题。我的脚本中有一个带有此代码的package.json。但是,在我第一次更改代码时,浏览器不会显示更改,如果我手动刷新会显示。每隔一次浏览器同步工作正常。我想知道命令是否有问题。

    "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1","theme": "theme watch --allow-live --notify=themeWatchNotify","sync": "browser-sync start --proxy 'https://example.myshopify.com/' --files 'themeWatchNotify' --config bs-config.js"
    }

解决方法

尝试添加--reload-delay 1000

themekit notify存在问题,似乎它在上传时并没有更新文件,而是在上传开始时更新了。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...