JSPM

  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q17367F
  • License MIT

Prebuild Marko pages

Package Exports

  • @marko/prebuild

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@marko/prebuild) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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