mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
browserify docs
This commit is contained in:
parent
774b9d2ac9
commit
afb23c520a
17
docs/browserify.md
Normal file
17
docs/browserify.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Marko + Browserify
|
||||||
|
|
||||||
|
The [markoify](https://github.com/marko-js/markoify) transform for [browserify](https://github.com/substack/node-browserify) will automatically compile Marko templates that are required by other modules.
|
||||||
|
|
||||||
|
The [marko-browserify](https://github.com/marko-js-samples/marko-browserify) sample app is a great starting point if you would like to use Marko with Browserify.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install markoify --save
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
browserify -g markoify --extension=".marko" main.js -o bundle.js
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user