lazy-assets: An opinionated and simple build-system
If you use Grunt/Gulp/whatever with bower, maybe this is for you.
With no extra-configuration, lazy-assets
will allow you to turn this:
<assets>
<asset href="jquery" source="bower" />
<asset href="bootstrap" source="bower" />
<asset href="ractive" source="bower" />
<asset href="parsleyjs" source="bower" main="dist/parsley.min.js" />
<asset href="datejs" source="bower" main="build/date.js" />
<asset href="app.js" compile="browserify" />
<asset href="test.less" />
<asset href="test.coffee" />
<asset href="js/*.js" />
</assets>
Into this:
<link href="index.css?533afd8c542ee" rel="stylesheet" media="all" type="text/css" />
<script type="text/javascript" src="index.js?533afd8c542fd"></script>
Read more at: https://github.com/endel/lazy-assets
Written by Endel Dreyer
Related protips
1 Response
Many thanks for this! This is awesome :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#