@marko/prebuild

Prebuild Marko pages

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
7615May 28, 2021Sep 17, 2016Minified + gzip package size for @marko/prebuild in KB

Readme


@marko/prebuild
API Stability NPM Version Downloads

Utility to precompile Marko templates using lasso prebuilds.

CLI

This package does not yet expose a CLI

API

Installation

npm install @marko/prebuild

Example

import prebuild from "@marko/prebuild";

prebuild({
  config: "./lasso-config.json", // Either a lasso config object, or a path to one.
  flags: ["skin-ds6"], // Lasso flags to use when building the pages.
  pages: [
    // A list of paths to marko templates to prebuild.
    "src/routes/index/index.marko"
  ]
}).then(() => {
  // All templates have their prebuild.json files written to disk.
  console.log("Prebuild completed");
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.