diff options
author | Sheogorath | 2019-10-29 14:18:14 +0100 |
---|---|---|
committer | GitHub | 2019-10-29 14:18:14 +0100 |
commit | 31803d673011ec4dc3c2d427aacfc2250e347b3d (patch) | |
tree | 531a3549f9c5e58c863d55c340d4f0ef839f8382 /docs | |
parent | 68ee654c167bfaab8245d01f4d56b61b23bf18b3 (diff) | |
parent | b714baa36ee3317082dac71a166986d6afb35b07 (diff) |
Merge pull request #209 from davidmehren/webpack_docs
Improve webpack dev documentation
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/webpack.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/dev/webpack.md b/docs/dev/webpack.md index b05fd1d3..3d35b28a 100644 --- a/docs/dev/webpack.md +++ b/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. |