Comments (2)
I just noticed that this is beyond the scope of the current implementation.
What would have to be done:
Add the original filename and relative path to the json:
https://github.com/webpack/docs/wiki/how-to-write-a-plugin#exploring-assets-chunks-modules-and-dependencies
Then update the template tag to look up the original filename and path and output the hashed filename with the static-url path here https://github.com/owais/django-webpack-loader/blob/master/webpack_loader/templatetags/webpack_loader.py
I think it would be quite interesting to have this working so that all static resources can be managed in webpack (including, for example image optimisation).
On the other hand there is also https://docs.djangoproject.com/en/1.10/ref/contrib/staticfiles/#manifeststaticfilesstorage and thumbnails applications (https://www.google.ch/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=django%20thumbnails).
What are the pro / cons of each solution?
from webpack-bundle-tracker.
Is this something that is still desired? We can try to add it in 1.0 if someone can come up with a proposal describing what the feature should look like. 1.0 will only support webpack >4.0
from webpack-bundle-tracker.
Related Issues (20)
- Set output default indent to 2
- Need a woff2 format to be stored at bundle chunks HOT 15
- Setting "path" option no longer works HOT 4
- Losing data when `deleteOriginalAssets` is used in compression plugin HOT 2
- Error when updating to v1.0.0 HOT 1
- move tests to github actions? HOT 2
- @sentry/webpack-plugin deletefilesafterupload Breaks Build
- Optional chaining breaks compatibility with Node.js version 12 HOT 1
- ERR_REQUIRE_ESM Build failure after some other package in my app installed new strip-ansi HOT 6
- Missing assets section of webpack-stats in ci github action agent build HOT 3
- BundleTracker raises errors as it tries to re-create existing folders HOT 7
- Implement Jazzband guidelines for webpack-bundle-tracker HOT 6
- TypeError [ERR_INVALID_ARG_TYPE] with Webpack 5 and relativePath: true HOT 3
- 1.0.0-alpha.1 version not generating webpack-stats.json file HOT 3
- NPM version
- Can't switch from NPM to yarn or the other way around
- Release 1.0.0 HOT 2
- Add CI to run automated tests HOT 1
- Issue when using BundleTracker for multiple webpack configuration HOT 1
- Double-check @types dependencies, some of then might not be used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-bundle-tracker.