Open qw-in opened 5 years ago
Scripts will not load for alternate layouts Succinct outline of the problem or request.
theme.example.liquid
theme.example.js
yarn start
theme.liquid
It is because of how the script-tags template generates the layout checks: https://github.com/Shopify/slate/blob/97408494ad07e38b51639d0c31329a6bafb753e6/packages/slate-tools/tools/webpack/script-tags.html#L8-L14
script-tags
It should instead use the method lower in the same file:
https://github.com/Shopify/slate/blob/97408494ad07e38b51639d0c31329a6bafb753e6/packages/slate-tools/tools/webpack/script-tags.html#L48-L52
Any additional information which might be helpful.
This repo is currently on low maintenance. See README for details
Problem
Scripts will not load for alternate layouts Succinct outline of the problem or request.
Replication steps
theme.example.liquid
)theme.example.js
)yarn start
-> Script will be loaded intheme.liquid
instead How to replicate the problem. Screenshots or video?More Information
It is because of how the
script-tags
template generates the layout checks: https://github.com/Shopify/slate/blob/97408494ad07e38b51639d0c31329a6bafb753e6/packages/slate-tools/tools/webpack/script-tags.html#L8-L14It should instead use the method lower in the same file:
https://github.com/Shopify/slate/blob/97408494ad07e38b51639d0c31329a6bafb753e6/packages/slate-tools/tools/webpack/script-tags.html#L48-L52
Any additional information which might be helpful.