hyperstack-org / hyperstack-org/hyperstack

webpacker integration does not pull in .css packs

未关闭
#266 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted
主要语言
JavaScript
星标
538
派生
41
PR 合并指标
30 天内没有已合并 PR

描述

If you require css files in the client_only and client_and_server pack files, they do not get included in the required assets.

Not sure if this is practical or possible. Currently hyper-config pulls in the pack file by doing an opal require on them. But if you try to require a css file it doesnt' like it.

The work around is to add one or both these lines to the layouts, if you are requiring css assets in the pack files:
`<%= stylesheet_pack_tag 'client_only' %>`
If you are requiring css libraries in the `client_only.js` pack file
and
`<%= stylesheet_pack_tag 'client_and_server' %>`
If you are requiring css libraries in the `client_and_server.js` pack file

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。