infinum / webpack-asset-pipeline

🚀 A missing link for the asset pipeline alternative with Webpack.
https://infinum.co/the-capsized-eight/squeezing-webpack-into-backend-frameworks
MIT License
30 stars 5 forks source link

Use raw require path as the key for assets #5

Closed DarkoKukovec closed 8 years ago

DarkoKukovec commented 8 years ago

With this PR, the asset paths would depend on the original asset path instead of the output asset path.

Related issue: #3

Before

{
   "assets/photo.jpg": "assets/44b3dae18da1232cf0c3c9aacd467ae6.jpg"
}

After

{
   "images/user/photo.jpg": "assets/44b3dae18da1232cf0c3c9aacd467ae6.jpg"
}
andreicek commented 8 years ago

Thanks! 🎉 Will be released v1.0.0 on Monday.