@marko/prebuild

5.0.3 • Public • Published


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

Package Sidebar

Install

npm i @marko/prebuild

Weekly Downloads

32

Version

5.0.3

License

MIT

Unpacked Size

6.2 kB

Total Files

5

Last publish

Collaborators

  • tigt
  • ryanturnquist
  • dylanpiercey
  • ryansolid
  • mlrawlings
  • agliga