-
Notifications
You must be signed in to change notification settings - Fork 606
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
import CSS/fonts #178
Comments
I am also getting this build error with css-loader and style-loader included in my app. |
Same, has to do with html static rendering (I'm not sure what that does actually)
|
I got this error for Appear tag and --no-html solved |
In case anyone else runs into this issue, you can allow css require/import by installing module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: [{loader: 'style-loader'}, {loader: 'css-loader'}],
},
],
},
} |
@with-heart that doesn't really seem to be the case. My example repo contained exactly that set-up and the issue persists. I just upgraded mdx-deck to the latest and still seems to be an issue.
|
Trying to put together a Gatsby theme for mdx-deck, and running into some issues with loading web fonts.
A few of the fonts we use are available in Google Fonts, so I could go that way, but ideally I'd be able to use the
typeface-
packages (basically an encapsulation of web fonts including the necessary CSS/woff/etc. files) and then the path to the local webfont to get all the fonts we need (including Futura).However, when I attempt to configure
webpack
with the css-loader and style-loader to load the CSS, the build breaks presumably because it's statically rendered and window isn't available.Any insight here? This apparently must have worked at some point, because I see Kent C Dodds is using CSS and able to build content out--also note that checking out that project and running the build script exhibits the same issue!
For a reproduction, check out the example here
Thanks for the awesome work here, I love mdx-deck ❤️
The text was updated successfully, but these errors were encountered: