vitalizer
Vital Software front-end asset builder
Last updated a month ago by teriu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vitalizer 
SYNC missed versions from official npm registry.

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

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 :x: :white_check_mark: When set, production assets are output as [CDN_URL][asset] rather than [asset]. Used to support an external CDN for assets.
CI :large_orange_diamond: :white_check_mark: When set to true, Vitalizer treats warnings as failures in the build. Most CIs set this flag by default.
DISABLE_HASH. :x: :white_check_mark: When set to true, production assets are output as [name].[ext] rather than [name][hash].[ext]. Useful for debugging and test purposes.
HOST :white_check_mark: :x: By default, the development web server binds to localhost. You may use this variable to specify a different host.
INDEX_FILES :white_check_mark: :white_check_mark: Comma seperated list of HTML files to use. Defaults to static/index.html.
PORT :white_check_mark: :x: 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 :white_check_mark: :white_check_mark: 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

Current Tags

  • 5.0.0-alpha.4                                ...           beta (a year ago)
  • 7.4.1                                ...           latest (a month ago)
  • 6.4.0-alpha.2                                ...           next (6 months ago)

168 Versions

  • 7.4.1                                ...           a month ago
  • 7.4.0                                ...           a month ago
  • 7.3.0                                ...           a month ago
  • 7.2.0                                ...           a month ago
  • 7.1.0                                ...           a month ago
  • 7.0.0                                ...           a month ago
  • 6.10.1                                ...           a month ago
  • 6.10.0                                ...           a month ago
  • 6.9.0                                ...           a month ago
  • 6.8.0                                ...           a month ago
  • 6.7.0                                ...           a month ago
  • 6.6.0                                ...           3 months ago
  • 6.5.0                                ...           4 months ago
  • 6.4.0                                ...           6 months ago
  • 6.4.0-alpha.2                                ...           6 months ago
  • 6.4.0-alpha.1                                ...           6 months ago
  • 6.3.0                                ...           6 months ago
  • 6.3.0-alpha.5                                ...           6 months ago
  • 6.3.0-alpha.4                                ...           6 months ago
  • 6.3.0-alpha.3                                ...           7 months ago
  • 6.3.0-alpha.2                                ...           7 months ago
  • 6.3.0-alpha.1                                ...           7 months ago
  • 6.2.0                                ...           7 months ago
  • 6.1.1                                ...           9 months ago
  • 6.1.0                                ...           9 months ago
  • 6.0.0                                ...           9 months ago
  • 5.4.1                                ...           9 months ago
  • 5.3.0-alpha.2                                ...           9 months ago
  • 5.3.0-alpha.1                                ...           9 months ago
  • 5.4.0                                ...           10 months ago
  • 5.3.0                                ...           a year ago
  • 5.2.1                                ...           a year ago
  • 5.2.0                                ...           a year ago
  • 5.1.2                                ...           a year ago
  • 5.1.1                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.1.0-alpha.1                                ...           a year ago
  • 5.0.7                                ...           a year ago
  • 5.0.7-alpha.1                                ...           a year ago
  • 5.0.6                                ...           a year ago
  • 5.0.5                                ...           a year ago
  • 5.0.4                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.1-alpha.2                                ...           a year ago
  • 5.0.1-alpha.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.3.2                                ...           a year ago
  • 4.3.1                                ...           a year ago
  • 5.0.0-alpha.4                                ...           a year ago
  • 5.0.0-alpha.3                                ...           a year ago
  • 5.0.0-alpha.2                                ...           a year ago
  • 5.0.0-alpha.1                                ...           a year ago
  • 4.3.0                                ...           a year ago
  • 4.3.0-alpha.1                                ...           a year ago
  • 4.2.0                                ...           a year ago
  • 4.2.0-alpha.18                                ...           a year ago
  • 4.2.0-alpha.17                                ...           a year ago
  • 4.2.0-alpha.16                                ...           a year ago
  • 4.2.0-alpha.15                                ...           a year ago
  • 4.2.0-alpha.14                                ...           a year ago
  • 4.2.0-alpha.13                                ...           a year ago
  • 4.2.0-alpha.12                                ...           a year ago
  • 4.2.0-alpha.11                                ...           a year ago
  • 4.2.0-alpha.10                                ...           a year ago
  • 4.2.0-alpha.9                                ...           a year ago
  • 4.2.0-alpha.8                                ...           a year ago
  • 4.2.0-alpha.7                                ...           a year ago
  • 4.2.0-alpha.6                                ...           a year ago
  • 4.2.0-alpha.5                                ...           a year ago
  • 4.2.0-alpha.4                                ...           a year ago
  • 4.2.0-alpha.3                                ...           a year ago
  • 4.2.0-alpha.2                                ...           a year ago
  • 4.2.0-alpha.1                                ...           a year ago
  • 4.1.3-alpha.2                                ...           a year ago
  • 4.1.3-alpha.1                                ...           a year ago
  • 4.1.3-alpha.0                                ...           a year ago
  • 4.1.2                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.3                                ...           2 years ago
  • 4.0.2                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.7.1                                ...           2 years ago
  • 3.7.0                                ...           2 years ago
  • 4.0.0-beta.6                                ...           2 years ago
  • 4.0.0-beta.5                                ...           2 years ago
  • 4.0.0-beta.4                                ...           2 years ago
  • 4.0.0-beta.3                                ...           2 years ago
  • 4.0.0-beta.2                                ...           2 years ago
  • 4.0.0-beta.1                                ...           2 years ago
  • 3.6.1                                ...           2 years ago
  • 3.6.0                                ...           2 years ago
  • 3.5.0                                ...           2 years ago
  • 3.4.3                                ...           2 years ago
  • 3.4.2                                ...           2 years ago
  • 3.4.1                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.4.0-alpha.1                                ...           2 years ago
  • 3.3.4                                ...           2 years ago
  • 3.3.3                                ...           2 years ago
  • 3.3.2                                ...           2 years ago
  • 3.3.1                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.3.0-alpha.9                                ...           2 years ago
  • 3.3.0-alpha.8                                ...           2 years ago
  • 3.3.0-alpha.7                                ...           2 years ago
  • 3.2.17                                ...           2 years ago
  • 3.2.16                                ...           2 years ago
  • 3.3.0-alpha.6                                ...           2 years ago
  • 3.3.0-alpha.5                                ...           2 years ago
  • 3.3.0-alpha.4                                ...           2 years ago
  • 3.3.0-alpha.3                                ...           2 years ago
  • 3.3.0-alpha.2                                ...           2 years ago
  • 3.3.0-alpha.1                                ...           2 years ago
  • 3.2.15                                ...           2 years ago
  • 3.2.14                                ...           2 years ago
  • 3.2.13                                ...           2 years ago
  • 3.2.12                                ...           2 years ago
  • 3.2.11                                ...           2 years ago
  • 3.2.10                                ...           2 years ago
  • 3.2.9                                ...           2 years ago
  • 3.2.8                                ...           2 years ago
  • 3.2.7-0                                ...           2 years ago
  • 3.0.4-0                                ...           2 years ago
  • 3.0.4-alpha                                ...           2 years ago
  • 3.2.6                                ...           2 years ago
  • 3.2.5                                ...           2 years ago
  • 3.2.4                                ...           2 years ago
  • 3.2.3                                ...           2 years ago
  • 3.2.2                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 3.0.1-0                                ...           2 years ago
  • 3.0.0-0                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.4                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |