0.2.8 • Published 2 years ago

multi-static v0.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Multi-static

Tool for developing web applications with complex static hierarchy and need in flexible modification of the contents of files (both in development and build modes).

Using

Run dev-server:

multi-static-dev --config ./config.js

Run build:

multi-static-build --config ./config.js

Configuration options

• http

Object with web server settings for dev-mode.

• http.port

Web server port.

• http.https

Use https protocol.

• http.key

Certificate key (for https).

• http.cert

Certificate (for https).

• buildPath

Build directory.

• mapping

Mapping for files.

• fileDevProcessing

File handling in dev mode.

• fileBuildProcessing

File handling in build mode.

• mappingDevLocationRewrite

The function of substituting the destination string from mapping for dev-mode.

• mappingBuildLocationRewrite

The function of substituting the destination string from mapping for build-mode.

• beforeBuild

Pre-build function.

• afterBuild

Post-build function.

• beforeDevStart

Function before starting dev server. Here you can configure the middlewares for the Express server.

Configuration examples

A comprehensive usage example can be found in the ./example directory.

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago