Giter VIP home page Giter VIP logo

Comments (18)

michael-ciniawsky avatar michael-ciniawsky commented on May 14, 2024

@bebraw @TheLarkInn Working on it, loaders aswell, when the basic document structure stands a open PR for review

from webpack.js.org.

michael-ciniawsky avatar michael-ciniawsky commented on May 14, 2024

Output

[Intro]

Usage

[Description (basic)]
webpack.config.js
[Example (basic)]

[Description (advanced)]
webpack.config.js
[Example (advanced)]

Options

  • path
  • publicPath
  • library (maybe separated ?)
  • libraryTarget (maybe separated ?)
  • filename
  • chunkFilename
  • sourceMapFilename
  • jsonpFunction (maybe advanced ?)

Advanced Options

devtool

  • devtoolLineToLine
  • devtoolModuleFilenameTemplate
  • devtoolFallbackModuleFilenameTemplate

hotUpdate

  • hotUpdateFunction
  • hotUpdateChunkFilename
  • hotUpdateMainFilename

No section assign yet ( ? Ideas welcome :))

  • pathinfo
  • sourcePrefix
  • umdNamedDefine
  • crossOriginLoading

Are any of this options deprecated or should be avoided ? Roughly structure ok so far? :)

from webpack.js.org.

skipjack avatar skipjack commented on May 14, 2024

@michael-ciniawsky structure looks good to me 👍 , just a heads up though: you might want to take a look #157, as all these options you're listing already have at least a start there. See the comments, we're currently trying to figure out how to divvy each section out. We're you planning on documenting each on this page or just linking to it?

@bebraw aside from the overlap here we should probably look at #156 as some of that is already done or started #157 as well.

from webpack.js.org.

skipjack avatar skipjack commented on May 14, 2024

The structure @michael-ciniawsky laid out above looks like it could work very well for the split up we've been talking about in #157.

from webpack.js.org.

bebraw avatar bebraw commented on May 14, 2024

Yeah, there's some definite overlap. The point is that you can go into great detail in this document if we agree that the configuration page is an overview (quick reference).

from webpack.js.org.

skipjack avatar skipjack commented on May 14, 2024

@bebraw but then we should just port all those detailed options from #157 to the individual Concepts pages like this one. I'm just going to go ahead and do that and merge #157 before any more overlap is created. If we want to rename the top-level nav items down the road we can. That work?

@michael-ciniawsky I'll use your structure to port things over and then you can create another PR to make any changes.

from webpack.js.org.

bebraw avatar bebraw commented on May 14, 2024

Yeah, merge is ok I think.

from webpack.js.org.

michael-ciniawsky avatar michael-ciniawsky commented on May 14, 2024

We're you planning on documenting each on this page or just linking to it?

@gregvenech

Depending on how you guys plan to do it :), it's the intended structure + document each on the page, but yes I noticed early that it would get 'a smell' of the current docs quickly. The organisation/layout must be different somehow.

Is it possible to display the advanced options + example programmatically on the concept pages e.g via user selection

<select>
  <option value="beginner">Beginner</option>
  <option value="advanced">Advanced</option>
</select>

which hides all advanced options + example on ever page when beginner(default) is selected ? This goes in the direction like you and sokra discussed hiding advanced content in <details></details>, but maybe a diff between beginner and advanced in terms of two different 'walkthroughs' would make docs usage easier to follow at the beginning, manual clicking on each respective page's details could be enabled nevertheless for folks wanting to revisit a specified section. As @bebraw stated out the right amout of detail is the tricky and important part, speaking of output for example , chunking and sourcemaps + OccurenceOrderPlugin and friends are 'advanced' beginner contents imo.

When I started, the 'basic' example + options are straightforward to document, there are not much ambiguities, but the advanced options will cause confusion for beginners since it's unlikley they have dig into webpack internals (compiler, code gen) at this point of their journey.

from webpack.js.org.

skipjack avatar skipjack commented on May 14, 2024

@michael-ciniawsky

Yea I do like the structure you described but it could get a bit lengthy having the full documentation for all of those options there. I really like that you tied in the other options that relate to output but aren't nested as options under output. I definitely think these ties should at least be linked to from the various configuration, concept, and api pages.

Is it possible to display the advanced options + example programmatically on the concept pages e.g via user selection...

Anything's possible 😁 ! Personally I think we can get a lot of that breakdown just by splitting up pages, organizing them (#93), and linking them -- creating an intuitive flow. Something like what you described could be useful but it would require some tweaks to the markdown parser or Page component to support it.

I'm working on splitting up #157 into multiple pages under a new Configuration section. I'm hoping to have it done and merged tonight. Maybe it's worth us quickly regrouping a little bit after and deciding on a distinct purpose for the pages within each section, i.e. Configuration, Concepts, API, etc., before diving in too much more. That way we can have a more consistent "game plan" when approaching new pages. @bebraw what do you think?

from webpack.js.org.

bebraw avatar bebraw commented on May 14, 2024

@gregvenech Yeah, we can sync after #157 is in a good shape and split up. I wouldn't get too stuck on the structure. It's easier to make judgment calls once there's something visible. I don't mind editing things into shape. 👍

from webpack.js.org.

skipjack avatar skipjack commented on May 14, 2024

@bebraw perfect.

from webpack.js.org.

michael-ciniawsky avatar michael-ciniawsky commented on May 14, 2024

@gregvenech @bebraw 👍 i wait until the split up is done, preparing contents meanwhile.

from webpack.js.org.

skipjack avatar skipjack commented on May 14, 2024

@michael-ciniawsky it's been split and merged. @sokra already started revising the new Configuration section in #180. So I guess anything on how to use specific output options would go in /configuration/output while the why and what is output would go in /concepts/output... would you agree @bebraw, @TheLarkInn? (though obviously there will be at least a small amount of overlap)

from webpack.js.org.

bebraw avatar bebraw commented on May 14, 2024

Sounds good to me.

from webpack.js.org.

michael-ciniawsky avatar michael-ciniawsky commented on May 14, 2024

@gregvenech 👍

Off topic but are there any notes besides the release note about the changes in modules (loaders -> rules) etc.? So I can update it and commit (concepts/modules, concepts/loaders)

from webpack.js.org.

bebraw avatar bebraw commented on May 14, 2024

@michael-ciniawsky Two sources for now: migration guide, gist.

from webpack.js.org.

TheLarkInn avatar TheLarkInn commented on May 14, 2024

Any update on this? Can help if anyone is stuck.

from webpack.js.org.

bebraw avatar bebraw commented on May 14, 2024

Online already. Just forgot to close this one.

from webpack.js.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.