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

extra character at the beginning of theme file read in #10

Open
RangeW opened this issue Jun 27, 2016 · 1 comment
Open

extra character at the beginning of theme file read in #10

RangeW opened this issue Jun 27, 2016 · 1 comment

Comments

@RangeW
Copy link

RangeW commented Jun 27, 2016

got this error when using toolbox-loader to load theme scss file replacement.
Invalid CSS after "...building: true;": expected 1 selector or at-rule, was "@mixin font-face($"

there's an extra character in front of "@mixin font", checked the original file, nothing there. looks like fs.readfile added it. added this code does the fix:

theme = theme.replace(/^\uFEFF/, '');

it's on windows platform, though. any suggestion on fixing it without code change?

@javivelasco
Copy link
Member

Hi! I'll be happy to merge a PR solving it but you have to know that toolbox-loader is actually no longer needed. You can now customize in multiple ways but the most similar is to provide the sass imports using sass-loader options. Please check react-toolbox docs or the example react-toolbox-example to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants