ananke/layouts/partials/site-scripts.html
Bud Parr 8b43f4662e
Replace Asset References with a data file instead of paths (#96)
* Add assets-webpack-plugin

Signed-off-by: budparr <budparr@gmail.com>

* Add generated Webpack Assets file

This file is generated by Webpack and writes the names of our hashed assets

Signed-off-by: budparr <budparr@gmail.com>

* Update stylesheet

Note sure why this was updated

Signed-off-by: budparr <budparr@gmail.com>

* Add CSS file from generated file

Replaces hardcoded path

Signed-off-by: budparr <budparr@gmail.com>
2018-04-10 18:35:56 -04:00

5 lines
136 B
HTML

{{ $script := .Site.Data.webpack_assets.app }}
{{ with $script.js }}
<script src="{{ printf "%s%s" "/dist/" . }}"></script>
{{ end }}