0inbwa
Last Updated: February 25, 2016
·
856
· endel
Profile 2015 2

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

Say Thanks
Respond

1 Response
Add your response

14334
4b70d375f6090d31cbc6065d6ac1c0a0

Many thanks for this! This is awesome :)

over 1 year ago ·