bootract

1.1.0 • Public • Published

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"
});

Readme

Keywords

Package Sidebar

Install

npm i bootract

Weekly Downloads

5

Version

1.1.0

License

none

Last publish

Collaborators

  • bmson