ui: Automatically replace assets

This commit is contained in:
Mitchell Hashimoto 2014-05-01 12:43:16 -07:00
parent 22bfd53294
commit 68a3f422b4
1 changed files with 2 additions and 0 deletions

View File

@ -13,5 +13,7 @@ dist:
@ruby scripts/compile.rb @ruby scripts/compile.rb
cp -R ./static dist/static/ cp -R ./static dist/static/
cp index.html dist/index.html cp index.html dist/index.html
sed -E -e "/ASSETS/,/\/ASSETS/ d" -ibak dist/index.html
sed -E "s#<\/body>#<script src=\"static/application.min.js\"></script></body>#" -ibak dist/index.html
.PHONY: server watch dist .PHONY: server watch dist