Skip to content

Commit 097390e

Browse files
Jezeniel Zapantaowais
authored andcommitted
Update README.md for webpack_static (#132)
* Update README.md for webpack_static * Revise previous documentation.
1 parent 323839c commit 097390e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ CKEDITOR.config.contentsCss = '{{ editor_css_files.0.publicPath }}';
288288
289289
`webpack_static` template tag provides facilities to load static assets managed by webpack
290290
in django templates. It is like django's built in `static` tag but for webpack assets instead.
291+
292+
291293
In the below example, `logo.png` can be any static asset shipped with any npm or bower package.
292294
293295
```HTML+Django
@@ -296,6 +298,7 @@ In the below example, `logo.png` can be any static asset shipped with any npm or
296298
<!-- render full public path of logo.png -->
297299
<img src="{% webpack_static 'logo.png' %}"/>
298300
```
301+
The public path is based on `webpack.config.js` [output.publicPath](https://webpack.js.org/configuration/output/#output-publicpath).
299302
300303
<br>
301304

0 commit comments

Comments
 (0)