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

How easy to use image root without ../../../home/1.jpg, I want to home / 1.jpg #220

Closed
janjon opened this issue Feb 29, 2016 · 2 comments
Closed

Comments

@janjon
Copy link

janjon commented Feb 29, 2016

How easy to use image root without ../../../home/1.jpg, I want to home / 1.jpg

@elektronik2k5
Copy link

@janjon you need to add 1.jpg's path to webpack's module_directories then use it like so ~1.jpg.

@jhnns
Copy link
Member

jhnns commented Jun 26, 2016

@janjon @elektronik2k5 Please don't use the modules_directories option for this. resolve.root is better for this purpose. module_directories will traverse all folders up to / similar like node does with node_modules.

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

3 participants