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
Is it possible to ignore css module expression like import "//cdn.com/external.css"
for SSR?
#507
Comments
ahuigo
changed the title
Is it possible to support
Is it possible to ignore Sep 9, 2022
import "./external.css"
expression?import "./external.css"
expression for SSR?
ahuigo
changed the title
Is it possible to ignore
Is it possible to ignore css module expression like Sep 9, 2022
import "./external.css"
expression for SSR?import "//cdn.com/external.css"
for SSR?
try import { Head } from "aleph/react";
export default function Index() {
// ...
return (
<div>
<Head>
<title>Monaco Editor</title>
<link
rel="stylesheet"
href="https://esm.sh/v78/[email protected]/esnext/monaco-editor.css"
/>
</Head>
<div ref={editorRef}>
<span style={{ color: "darkgray" }}>loading...</span>
</div>
</div>
);
} |
@ddosakura It's not a good way for external package. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I mean is that, is it possible to skip this
import "cdn/external.css"
expression at hydrate server side?Since this expression can only be used at browser side.
The text was updated successfully, but these errors were encountered: