vitalizer

8.4.0 • Public • Published

Vitalizer Build status npm version

Webpack development and bundling tool for Vital Software.

Features

  • Hot reloading
  • Injected JS/CSS assets
  • Tree-shaking optimization
  • Cache busted production assets
  • Source map support
  • PostCSS (Autoprefixer, SCSS style syntax)
  • CSS Module support
  • cssnano minification
  • rem() function support

Contributing

All changes that are pushed to the master branch are deployed via a Buildkite pipeline. The pipeline runs tests, builds a Docker image, builds the release artifacts for NPM, and the library itself to an NPM registry. Use the Commit Message as documented in our Contributing Guide to trigger a release.

Installing

To install, run the following commands:

yarn add vitalizer -D

Usage

Development

To run Vitalizer in development mode (using webpack-serve), run the following command:

vitalizer start

To build your project files for production, run the following command:

vitalizer build

Configuration

To configure Vitalizer, create a file called .vitalizer in the root of your project:

VARIABLE=name

And set any of the following variables:

Variable Development Production Usage
CDN_URL When set, production assets are output as [CDN_URL][asset] rather than [asset]. Used to support an external CDN for assets.
CI 🔶 When set to true, Vitalizer treats warnings as failures in the build. Most CIs set this flag by default.
DISABLE_HASH. When set to true, production assets are output as [name].[ext] rather than [name][hash].[ext]. Useful for debugging and test purposes.
HOST By default, the development web server binds to localhost. You may use this variable to specify a different host.
INDEX_FILES Comma seperated list of HTML files to use. Defaults to static/index.html.
PORT By default, the development web server will attempt to listen on port 3000 or prompt you to attempt the next available port. You may use this variable to specify a different port.
RESOLVE_MODULES Comma seperated list of module roots to use other than node_modules. i.e. app, static

Expanding Environment Variables In .env

Expand variables already on your machine for use in your .env file (using dotenv-expand).

For example, to use the DOMAIN variable:

DOMAIN=www.example.com
FOO=$DOMAIN/foo
BAR=$DOMAIN/bar

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.4.03latest
8.2.0-alpha.110alpha
6.4.0-alpha.20next
5.0.0-alpha.40beta

Version History

VersionDownloads (Last 7 Days)Published
8.4.03
8.3.00
8.2.00
8.2.0-alpha.110
8.2.0-alpha.100
8.2.0-alpha.90
8.2.0-alpha.80
8.2.0-alpha.70
8.2.0-alpha.60
8.2.0-alpha.50
8.2.0-alpha.40
8.2.0-alpha.30
8.2.0-alpha.20
8.2.0-alpha20
8.2.0-alpha10
8.1.00
8.0.00
7.5.00
7.4.20
7.4.10
7.4.00
7.3.00
7.2.00
7.1.00
7.0.00
6.10.10
6.10.00
6.9.00
6.8.00
6.7.00
6.6.00
6.5.00
6.4.00
6.4.0-alpha.20
6.4.0-alpha.10
6.3.00
6.3.0-alpha.50
6.3.0-alpha.40
6.3.0-alpha.30
6.3.0-alpha.20
6.3.0-alpha.10
6.2.00
6.1.10
6.1.00
6.0.00
5.4.10
5.3.0-alpha.20
5.3.0-alpha.10
5.4.00
5.3.00
5.2.10
5.2.00
5.1.20
5.1.10
5.1.00
5.1.0-alpha.10
5.0.70
5.0.7-alpha.10
5.0.60
5.0.50
5.0.40
5.0.30
5.0.20
5.0.10
5.0.1-alpha.20
5.0.1-alpha.10
5.0.00
4.3.20
4.3.10
5.0.0-alpha.40
5.0.0-alpha.30
5.0.0-alpha.20
5.0.0-alpha.10
4.3.00
4.3.0-alpha.10
4.2.00
4.2.0-alpha.180
4.2.0-alpha.170
4.2.0-alpha.160
4.2.0-alpha.150
4.2.0-alpha.140
4.2.0-alpha.130
4.2.0-alpha.120
4.2.0-alpha.110
4.2.0-alpha.100
4.2.0-alpha.90
4.2.0-alpha.80
4.2.0-alpha.70
4.2.0-alpha.60
4.2.0-alpha.50
4.2.0-alpha.40
4.2.0-alpha.30
4.2.0-alpha.20
4.2.0-alpha.10
4.1.3-alpha.20
4.1.3-alpha.10
4.1.3-alpha.00
4.1.20
4.1.10
4.1.00
4.0.30
4.0.20
4.0.10
4.0.00
3.7.10
3.7.00
4.0.0-beta.60
4.0.0-beta.50
4.0.0-beta.40
4.0.0-beta.30
4.0.0-beta.20
4.0.0-beta.10
3.6.10
3.6.00
3.5.00
3.4.30
3.4.20
3.4.10
3.4.00
3.4.0-alpha.10
3.3.40
3.3.30
3.3.20
3.3.10
3.3.00
3.3.0-alpha.90
3.3.0-alpha.80
3.3.0-alpha.70
3.2.170
3.2.160
3.3.0-alpha.60
3.3.0-alpha.50
3.3.0-alpha.40
3.3.0-alpha.30
3.3.0-alpha.20
3.3.0-alpha.10
3.2.150
3.2.140
3.2.130
3.2.120
3.2.110
3.2.100
3.2.90
3.2.80
3.2.7-00
3.0.4-00
3.0.4-alpha0
3.2.60
3.2.50
3.2.40
3.2.30
3.2.20
3.2.10
3.2.00
3.1.00
3.0.50
3.0.40
3.0.30
3.0.20
3.0.10
3.0.00
3.0.1-00
3.0.0-00
2.1.20
2.1.10
2.1.00
2.0.00
1.4.00
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.20
1.2.10
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i vitalizer

Weekly Downloads

3

Version

8.4.0

License

MIT

Unpacked Size

53.5 kB

Total Files

16

Last publish

Collaborators

  • teriu