0.10.0 • Published 7 years ago

vanipack v0.10.0

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago


Features

  • Single dependency
  • Plugin system
  • Hot reload
  • Fully customizable

Installation

$ npm install --save vanipack

Usage

# start development server
$ vanipack serve

# build for production
$ NODE_ENV=production vanipack build

# start production server
$ NODE_ENV=production vanipack start

Config

// vanipack.js

export default {
  plugins: [],

  webpack: null,

  postcss: null,

  path: {
    public: "/",
    static: "./static",
  },

  entry: {
    client: "./entry/client",
    server: "./entry/server",
  },

  module: {
    include: [],
  },

  bind: {
    client: {
      host: "127.0.0.1",
      port: 8080,
    },
    server: {
      host: "127.0.0.1",
      port: 8000,
    },
  },
};

Plugins

Examples