Skip to content

Simplify README with better examples #282

@fjsj

Description

@fjsj
  • 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