@marko/prebuild
v5.0.3
Published
Prebuild Marko pages
Downloads
71
Readme
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");
});