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

Error when using background css property with url #16

Closed
ffesseler opened this issue Sep 25, 2016 · 2 comments
Closed

Error when using background css property with url #16

ffesseler opened this issue Sep 25, 2016 · 2 comments
Labels
bug A bug-report

Comments

@ffesseler
Copy link

.header-container {
  background:url("./images/barre-grise.png") repeat-x 0 0;
}

Adding this in main.css throws this error :

~/K/l/licence-elm-client (test-elm) $ elm-app start
Running /usr/local/lib/node_modules/create-elm-app/node_modules/.bin/elm-make /Users/toto/licence/licence-elm-client/src/Main.elm --yes --warn --output /var/folders/vj/sl_9sk296rq4
st_49brcbbf80000gn/T/116825-19365-119ploe.js
Success! Compiled 1 module.
Successfully generated /var/folders/vj/sl_9sk296rq4st_49brcbbf80000gn/T/116825-19365-119ploe.js

Compilation failed.

./src/images/barre-grise.png
Module parse failed: /Users/toto/licence/licence-elm-client/src/images/barre-grise.png Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '�' (1:0)
    at Parser.pp$4.raise (/usr/local/lib/node_modules/create-elm-app/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
@halfzebra halfzebra added the bug A bug-report label Sep 25, 2016
@joakin
Copy link
Contributor

joakin commented Sep 25, 2016

This should be fixed with 0c062da right? Next new release should solve this problem.

@ffesseler
Copy link
Author

Yes, it indeed fixed the background:url issue, thanks !

I've another issue with the img src attribute. I guess the html-loader should be used for that but I don't know much about webpack.

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

No branches or pull requests

3 participants