Skip to content
Permalink
Browse files

Merge pull request #209 from davidmehren/webpack_docs

Improve webpack dev documentation
  • Loading branch information...
SISheogorath committed Oct 29, 2019
2 parents 68ee654 + b714baa commit 31803d673011ec4dc3c2d427aacfc2250e347b3d
Showing with 8 additions and 1 deletion.
  1. +8 −1 docs/dev/webpack.md
@@ -7,7 +7,14 @@ about it on [the webpack website](https://webpack.js.org/).
Here's how we're using it:

## `webpack.common.js`
This file contains all common definition for chunks and plugins, that are needed by the whole app.
This file contains all common definitions for chunks and plugins that are needed by the whole app.

The various entrypoints under the `entry` key define groups of files (npm packages or .css/.js files directly from this project) that need to be included together to be useful.
The `index` group for example bundles all javascript files and libraries used for the note editor.

Entrypoints are referenced in the `plugins` section.
The `HtmlWebpackPlugin` uses templates in `public/views/includes` to include the path to the generated resources in new templates under `public/views/build`. These templates are then used by the backend to serve HTML to the browser.


**TODO:** Document which entry points are used for what.

0 comments on commit 31803d6

Please sign in to comment.
You can’t perform that action at this time.