@marko/build
Utility to serve Marko build a server from a template
Last updated 10 days ago by dylanpiercey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @marko/build 
SYNC missed versions from official npm registry.


@marko/build
API Stability NPM Version Downloads

Utility to build a node server from a marko file

CLI

Getting Started

npm install @marko/build
marko-build .

or

npx @marko/build .

Example

marko-build .
marko-build ./my-page.marko

Options

  • --output -o: Where to write the build.

API

Installation

npm install @marko/build

Example

import build from "@marko/build";

build({
  file: "./component.marko"
}).run(() => {
  console.log("Build complete");
});

The object returned from the build function is a webpack compiler instance.

Options

  • file - the marko file to build
  • output - where to write the build
  • serverPlugins - additional webpack plugins to run on the server build
  • clientPlugins - additional webpack plugins to run on the client build
  • production - whether to build in production mode

Current Tags

  • 1.6.2                                ...           latest (10 days ago)

21 Versions

  • 1.6.2                                ...           10 days ago
  • 1.6.1                                ...           10 days ago
  • 1.6.0                                ...           11 days ago
  • 1.5.1                                ...           17 days ago
  • 1.5.0                                ...           18 days ago
  • 1.4.1                                ...           19 days ago
  • 1.4.0                                ...           19 days ago
  • 1.3.3                                ...           25 days ago
  • 1.3.2                                ...           a month ago
  • 1.3.1                                ...           a month ago
  • 1.3.0                                ...           a month ago
  • 1.2.0                                ...           8 months ago
  • 1.1.1                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.7                                ...           8 months ago
  • 1.0.6                                ...           9 months ago
  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           9 months ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 43
Last Month 161
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |