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

PostCSS @import #33

Open
Ianc22 opened this issue Apr 29, 2017 · 0 comments
Open

PostCSS @import #33

Ianc22 opened this issue Apr 29, 2017 · 0 comments

Comments

@Ianc22
Copy link

Ianc22 commented Apr 29, 2017

Hi,

I'm trying to use @import in the css but I get an error 'Module not found. Example:

Layout.js
import s from './Layout.css';

Layout.css
@import "base/_variables";

When I replace the css import with "/base/_variables"; I no longer get the error but on page load the following shows up in the debug console:

Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:3000/base/_variables".

I'm assuming it's an issue with the webpack config?

Any assistance would be greatly appreciated.

Thanks in advance!

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

1 participant