Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

スタイルシートからインポートされるスタイルシートがロードされない #316

Open
MurakamiShinyu opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@MurakamiShinyu
Copy link
Member

スタイルシートからインポートされるスタイルシートが有効になりません。

例:

vivliostyle.config.js ファイルで次のようにスタイルシートを指定します。

  theme: 'style.css',

style.css ファイルの先頭には

@import "style2.css";

があり、その style2.css ファイルでもスタイルの指定をしています。

MDファイルをプレビュー画面で確認すると、style.css ファイルに書かれたスタイルは反映されますが、style2.css ファイルに書かれたスタイルは反映されません。

ブラウザのDevToolsで見てみると、次のようにエラーメッセージが出ています:

Failed to load resource: the server responded with a status of 404
GET https://vivliostyle-pub-develop.vercel.app/vpubfs/style2.css 404 (Not Found)

@MurakamiShinyu MurakamiShinyu added the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant