0.0.3 • Published 10 years ago
browserify-transform-dna v0.0.3
browserify-transform-dna
http://browserify.org/ transformer for organic-dna
use
Install:
$ cd myProject $ npm install browserify-transform-dnaCreate the following structure and files:
+ myProject |-+ dna | |- client.json |- main.jsCreate the content:
// client.json { "property": "value" } // main.js var dna = require("dna") console.log(dna.property)Bundle:
$ browserify -t browserify-transform-dna ....See in the browser that
dna.propertyis equal tovalue- Read more about
- Note that
browserify-transform-dnausesprocess.env.CELL_MODEfor folding
- default value is
_development