Shopify slate 主题样式未加载

Shopify slate theme styling is not loading

我想在 shopify 主题中添加 React。所以我正在尝试使用石板。我正在关注 official doc of slate。

我创建了新的 slate 项目。

yarn create slate-theme my-new-theme

并连接到我的商店

 # The myshopify.com URL to your Shopify store
SLATE_STORE={store-name}.myshopify.com

# The API password generated from a Private App
SLATE_PASSWORD=ccf7fb19ed4dc6993ac6355c0c489c7c7

# The ID of the theme you wish to upload files to
SLATE_THEME_ID=32112656003

# A list of file patterns to ignore, with each list item separated by ':' (optional)
SLATE_IGNORE_FILES=config/settings_data.json

# The timeout for upload theme (optional)
SLATE_TIMEOUT=2m

但是当我使用 yarn start 开始项目时。 一切正常,但 css 未加载。

Slate 使用本地 Express 服务器在本地为您的资产提供服务。最好在您的设备上创建受信任的自签名 SSL 证书,这样通过 https 提供的资产就不会被阻止。

如果您检查就会遇到这个问题。

net::ERR_CERT_AUTHORITY_INVALID

您需要创建一个 self-signed SSL certificate.

那么 css 就可以了。