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

data-uri causes build system (webpack) to fail #11

Closed
samzhao opened this issue May 21, 2015 · 10 comments
Closed

data-uri causes build system (webpack) to fail #11

samzhao opened this issue May 21, 2015 · 10 comments
Labels

Comments

@samzhao
Copy link

samzhao commented May 21, 2015

First of all, I regret not discovering this amazingly well-written library/toolkit earlier, so thanks for putting this together :) And I wouldn't mind writing documentations for it in my spare time.

I had a problem with data-uri with webpack style loaders where the path fails to resolve. Also, I read somewhere that data uris actually load slower than directly referencing the asset paths. Therefore, it would be nice to remove the 2 data-uri usages if we could unless there's some considerations that I'm not aware of.

Thanks!

@JedWatson
Copy link
Member

@samzhao thanks! would be great to have you help write documentation, I'll set up gitter shortly for Elemental so we can chat about it. @jossmac has been making the examples but we need to add code snippets for them, and document the various options that are supported.

We're using data-uri to get around needing to ship public assets, which are difficult to wrap up in a way that works across all build processes. Would you be able to share a github repo with a simple setup including elemental and a web pack config that I can clone to reproduce the error?

@samzhao
Copy link
Author

samzhao commented May 30, 2015

@JedWatson The project I'm currently working on is unfortunately not open source, but here is a slightly simplified version of it: https://github.com/samzhao/elemental-webpack.

Let me know when you have gitter setup and maybe put together a documentation format to follow :)

@samzhao
Copy link
Author

samzhao commented May 30, 2015

When you clone the project and run it locally by doing npm start, you should see something like this:

screen shot 2015-05-30 at 1 51 47 pm

@JedWatson
Copy link
Member

Thanks @samzhao, I'll clone that and take a look.

@petehunt @mjackson @zackify @nmn this issue is pretty relevant to the conversation we were just having on the podcast :) would love pointers if you have them.

@soupaJ
Copy link

soupaJ commented Jun 12, 2015

FYI, this sounds related to the issue @sokra mentioned here webpack-contrib/less-loader#43 (comment)

@ivan-kleshnin
Copy link

Can we just replace this data-uri with url and put a comment to come back to this later when LESS loader will be fixed?!

@ericclemmons
Copy link

This is missing a tagged release to work correctly with Webpack :) (v2.0.0 is the latest)

@JedWatson
Copy link
Member

@ericclemmons sorry about that, I've just pushed a new release (v0.2.1) with @jossmac's fix in it!

@ericclemmons
Copy link

🚂 WoOt WoOt! 🚂

@samzhao
Copy link
Author

samzhao commented Aug 2, 2015

Fix confirmed. Thanks @JedWatson and @jossmac!

jonathanwmaddison pushed a commit to jonathanwmaddison/elemental that referenced this issue Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants