1.1.0 • Published 7 years ago

bootract v1.1.0

Weekly downloads
8
License
-
Repository
github
Last release
7 years ago

reqly react

React helper to quickly run a server with Babelify and react hot-loader

Add the following to package.json

"babel": {
  "presets": ["es2015", "react"]
},

build development

// Dependencies
var bootract = require('bootract');

// Set port on localhost
bootract.port(3333);

// Create webpack server with live-reload
bootract.development({
  input:  "./src/index.jsx",
  output: "./src/bundle.js"
});

build production

// Dependencies
var bootract = require('bootract');

// Compile source code and export
bootract.production({
  input:  "./src/example.jsx",
  output: "./src/bundle.js"
});