npm.io
0.2.3 • Published 5 years ago

zat-server-webpack-plugin

Licence
ISC
Version
0.2.3
Deps
0
Size
7 kB
Vulns
0
Weekly
0
Stars
1

ZAT Server Webpack Plugin

Webpack plugin for Zendesk app development with Zendesk apps tools. It automatically spawns ZAT server, and restarts it when its config file or app manifest change.

Requires zat installed and available on PATH: https://developer.zendesk.com/documentation/apps/zendesk-app-tools-zat/installing-and-using-the-zendesk-apps-tools

Installation

npm i -D zat-server-webpack-plugin

Usage

// webpack dev config

const ZATServerPlugin = require("zat-server-webpack-plugin")

module.exports = {
    mode: "development",
    plugins: [new ZATServerPlugin(options)],
}
Options

Any provided options are parsed and passed them directly as zat args:

new ZATServerPlugin({
    path: "dist",
    appId: 0,
    unattended: undefined,
})
zat server --path dist --app-id 0 --unattended

For the full list of available options run:

zat help server

Keywords