New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@marko/build

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marko/build

Utility to serve Marko build a server from a template

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
Maintainers
5
Weekly downloads
 
Created
Source


@marko/build
API Stability NPM Version Downloads

Utility to build a node server from a marko file

CLI

Installation

npm install marko-cli

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

Keywords

FAQs

Package last updated on 12 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc