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
Error when trying to load minified css #160
Comments
@EmaSuriano The docz CSS plugin should resolve your problem: https://github.com/pedronauck/docz/tree/master/packages/docz-plugin-css |
Hi @tsnolan23 I'm using the docz-plugin-css. This my doczrc.js // doczrc.js
import { css } from 'docz-plugin-css';
export default {
plugins: [
css({
preprocessor: 'postcss',
cssmodules: true,
}),
],
}; Please tell me if I'm missing anything |
@EmaSuriano I was able to get your project running by modifying the bundler config without the CSS plugin:
It did require additional dependencies, then, though - Not sure if that's the proper way to achieve the result, but it does work! |
It works! 🎉 |
Yeah, not disagreeing with that! |
Fixed on v0.7.0 |
Hi @pedronauck, I updated the version of |
Sorry @EmaSuriano, I was excluding imports from |
@tsnolan23's fix here #160 (comment) works for me, in case others are browsing this issue. |
Bug Report
Describe the bug
I'm using a library (react-tippy) which requires to load a css file in order to look as expected. When I load the component which imports that css file, I get an error of Unexpected token .*
A clear and concise description of what the bug is.
I get the following error on the console which stops the server from starting ..
To Reproduce
In order to
Expected behavior
Start the server as expected.
Enviroment
Additional context/Screenshots
The workaround I found was to format the file with prettier and it seems the server to be working. The problem with is that I have to store the file in my codebase, which I really don't want to do because if the owner of the library made a change on the styles I have to manually change it ..
This is the branch with the work around --> https://github.com/EmaSuriano/docz-css-bug-example/tree/formatting-css-file
The text was updated successfully, but these errors were encountered: