Skip to content

Commit

Permalink
Use buildstamp on assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliamKopecky committed Jul 1, 2019
1 parent d2c4d37 commit bdb4054
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions mango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ static:
- node_modules/lt-ie-9/lt-ie-9.min.js
templates:
- src/templates/*.pug
buildstamp:
- dist/assets/styles/index.css
- dist/assets/styles/guide.css
- dist/assets/scripts/index.js
data:
global: src/data/global.json
version: ">=3.1.0"
5 changes: 3 additions & 2 deletions src/templates/layouts/default.pug
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ html
meta(name='author', content='manGoweb s.r.o. <[email protected]> (http://www.mangoweb.cz')
meta(name='buildstamp', content=(new Date()))

link(rel='stylesheet', href='styles/index.css', media='screen')
link(rel='stylesheet', href='styles/guide.css', media='screen')
link(rel='stylesheet', href=`${assetPath}/styles/${buildstamp}index.css`, media='screen')
link(rel='stylesheet', href=`${assetPath}/styles/${buildstamp}guide.css`, media='screen')

link(rel='shortcut icon', href='favicon.ico')
link(rel='icon', type='image/png', href='favicon.png')

Expand Down

0 comments on commit bdb4054

Please sign in to comment.