An open API service indexing awesome lists of open source software.

https://github.com/endel/lazy-assets

An opinionated and simple build-system approach.
https://github.com/endel/lazy-assets

Last synced: about 1 year ago
JSON representation

An opinionated and simple build-system approach.

Awesome Lists containing this project

README

          

lazy-assets
===

An opinionated and simple build-system approach.

Features:
---

- JavaScript minification and optimization
- CSS minification and optimization
- Bower integration
- **Zero configuration**

Requirements
---

```bash
npm install -g lazy-assets
```

Development server
---

On development mode, `asset` definitions are evaluated and dynamically
converted to a valid HTML tag. They are compiled on-demand. No "watch"
required.

```bash
lazy-assets examples/simple
```

Production
---

When compiling for production, all your javascripts and stylesheets are
compressed into a single file.

```bash
lazy-assets {input_dir} {output_dir}
```

How to use
---

Wrap all your assets with `` tag, and define each dependency with
`` tag.

To start the development server, run the following: (by default it binds on
[localhost:3000](http://localhost:3000).)

```bash
lazy-assets examples/simple
```

Then define your dependencies:

```html









```

When `http://localhost:8000` is requested, the output of the HTML file will be
the following:

```html

```

Now let's compile it for production:

```bash
lazy-assets examples/simple examples/simple-output
```

Result:

```html

```

License
---

MIT