Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simplify README with better examples #282

Closed
Assignees
@fjsj

Description

  • Remove link to https://owais.lone.pw/blog/webpack-plus-reactjs-and-django/, it's an old post and there may be some stuff that doesn't apply anymore.
  • The README should guide step-by-step how to configure a basic example. You may include the example code in the repo and point to it, but the step-by-step should have EVERYTHING that's needed to run the example, including Django's runserver and how to run webpack with the webpack-bundle-tracker.
  • Explain entrypoint concept and how it's related to calling render_bundle .

"In webpack version < 4 it was common to add vendors as a separate entry point to compile it as a separate file (in combination with the CommonsChunkPlugin).
This is discouraged in webpack 4. Instead, the optimization.splitChunks option takes care of separating vendors and app modules and creating a separate file. Do not create an entry for vendors or other stuff that is not the starting point of execution."
Out of the box configs here: https://webpack.js.org/plugins/split-chunks-plugin/#defaults

Also, after this is solved, we can probably close those issues:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /