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

babel-loader - You may need an appropriate loader to handle this file type. #39

Closed
BenjaminBeguin opened this issue Dec 21, 2017 · 1 comment

Comments

@BenjaminBeguin
Copy link

Hey guys,

I'm trying something very basic, to import a css file in a component like this :
import './style.css'
The file style.css exist and is in the same folder as the component js file.
I already did that in other react web app but first time using the headless-wp-starter.

I get this error :

image

Any idea ?

Most of the fix for this issue that i found is to custum the babel loader but i didn't how to do that with this starter 'cause there is no webpack.babel.config.js or something like this

@ginatrapani
Copy link
Member

Hey @BenjaminBeguin we just added support for Sass -- try using styles this way: ed36ea1

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

No branches or pull requests

2 participants