Comments (9)
Could you share your full config please?
from webpack-bundle-tracker.
https://github.com/HearthSim/HSReplay.net/blob/master/webpack.config.js#L54-L58
from webpack-bundle-tracker.
Your config looks fine. filename
is supposed to be just the name of the file and thus always relative to the path
. Check https://webpack.github.io/docs/configuration.html
from webpack-bundle-tracker.
@owais My config is fine because I fixed it, please see the original issue - the API is redundant and error-prone and I was asking if there's an actual reason behind it.
from webpack-bundle-tracker.
In that case you should have shared the config in question. The one that was bad :)
from webpack-bundle-tracker.
@owais The config I pasted in the original post reproduces the issue.
from webpack-bundle-tracker.
That usage is incorrect. filename
is appended to path
by webpack to form the full path. Webpack documentation issue that caused the confusion. We can't remove useful information from manifest to make up for confusing or lack of webpack documentation.
from webpack-bundle-tracker.
Where does webpack use those args? All I can find is your own usage here:
https://github.com/owais/webpack-bundle-tracker/blob/master/index.js#L83-L84
from webpack-bundle-tracker.
I see. I confused it with the filename
in output
section. (sharing full config always helps). Anyway, having both path
and filename
is consistent with how webpack defines the path in other places so for someone having used and read webpack docs, this should be intuitive. Other than that it is useful to split the path into a base path and the filename relative to the project. It also gives much more flexibility to create custom tools around the manifest file like for deployments using CI servers. Also makes it easier to keep the manifest file backward compatible. For example, if we want to introduce another stats file to contain more detail info about the build, a different file for errors or multiple files for multiple entries in future, it should be easier to use a common path
and different filename
for the files.
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.