ui: Automatically replace assets
This commit is contained in:
parent
22bfd53294
commit
68a3f422b4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue