Access to v3 doc?
While we wait for all the V4 plugins and issues and docs to settle down, folks still need to get work done with V3. It would be nice to have access to the docs.
@estaub It is something missing in the official website?
@montogeek I don't know what the current state is. AFAICT, most of the changes needed for 4 aren't there yet, which is one of the things I'm waiting for before switching.
It will be very difficult to maintain doc that works well for both, though; everything different will need to be labeled 3-only or 4-only somehow, e.g. CommonsChunkPlugin, UglifyjsWebpackPlugin, the new optimization config, etc. People will forget to preserve 3-only content, and it will make for awkward and error-prone reading. I'd think it would be easier to just serve two versions of the doc as a whole than to worry about any of this.
missing v3 doc too. Can a snapshot be made accessible in something like https://webpack.js.org/3?
Everything in the website is for webpack 3, AFAIK nothing has been deleted. CommonsChunkPlugin does not longer exists in webpack 4, but the page is available (https://webpack.js.org/plugins/commons-chunk-plugin/), the plan is to add a deprecation warning linking to its replacement, never remove it.
Making a snapshot of the docs would be good, but I am afraid it would require a lot of work since it does not exist.
@montogeek The black-and-blue chip in the upper corner of the doc saying "webpack v4.0.1" leads readers (like me) to think that it at least attempts to doc v4.
That shows the latest version, but I see your point
@estaub yeah the version pill is problematic and misleading because the docs are definitely 3.x but users will end up getting 4.x if they just run npm i webpack. I'd say we should have a version selector similar to something like Django or Ember
I second having a version selector. I frequently look for nonexistent old docs and am forced to do git blame to find the right version, and read source code itself.
Thinking more about this I am not sure if it is worth to have an entire version of the website for each version, although it is a major release, not a lot of things changed, there is 113 pages of documentation from which approximately only 25 (22%) would need an update for webpack 4.
What you think about this @TheDutchCoder @jeremenichelli ?
@montogeek At the risk of seeming snarky... why do folks do all that forking with git? Most of each of the forks are all the same.
Like forking, the advantage to having separate versions is complete unambiguity. Otherwise, for any page that has no reference to 3 or 4, the reader is left wondering:
- Is it 3, not updated yet?
- Is it the same in both?
- Is it 4-only, and the author of the v4 content forgot (or didn't know) to preserve 3-specific guidance?
I'm ignorant of the devilish details, but I'd be surprised if, at the end of the day, it's easier to cover 3 and 4 well in the same doc than it is to publish two versions. It isn't of only temporary value, either; there will be a 5, 6, ...
I'm usually a proponent of having versioned docs. It might feel a bit verbose, but I think it's critical to have at the very least major versions split out in the docs as they usually differ significantly.
We could opt for latest release of each major version?
We'd have to find a way to (re)structure this on the website, but a simple dropdown should suffice and maybe adding versioned sub-directories in the project (src/content/v3).
We would need some input from other people on this though, but I'm all for it!
For example, Vue.js has a version selector for the docs: https://vuejs.org/v2/api/
I am in as well!
@TheDutchCoder, thinking of what @montogeek said: since there are only less than 1/4 of the documentation need v4 update -- may be we can have version section in the same page, place V4 at the top section, which follow by V3 section, that way we can have this up quickly without having to add a drop down or restructure the entire website.
@montogeek magic comments are not the same as between v3.x.x and v4.x.x (ie no lazy-once in v3)
Isn't ironic that for a build system that seems to do very well in fingerprinting output assets fails in applying this to it's own documentation.
entry: {
docs: '**/*.html'
},
output: {
path: '[pkg.version.major].[pkg.version.minor]/[name].[ext]'
}
Something that really needs to be thought about.
Lodash does a great job of providing access to multiple versions of their docs both via url and through a UI control that lets you easily switch versions. This should be the standard way of doing things for any documentation.
Example. https://lodash.com/docs/4.17.5
This is really, really confusing at the moment. I am required to use v3, and it's not stated anywhere that the docs for v4 are largely compatible with the docs for v3. Keeping snapshots of old docs for a project as large as webpack would be a huge plus.
Please use https://webpack.js.org/v3/ for webpack 3 docs.
@montogeek that link is perfect -- thanks!
Are there plans to add a version selector to the docs? (right now it's not really discoverable)
Great! Little remark: the doc at https://webpack.js.org/v3/ still indicates it's v4.4.1.
https://github.com/webpack/webpack.js.org/issues/1854#issuecomment-368919143