Public | Automated Build

Last pushed: 10 months ago
Short Description
Webpack in a container
Full Description

krisgray/docker-webpack

Webpack in a container

$ docker pull krisgray/webpack

Example: Serve dev

Note: Assumes that default webpack.config.js exists at source root.

$ docker run \
  --rm \
  -i \
  -t \
  -v /path/to/source:/app \
  -p 8080:8080 \
  krisgray/webpack \
  webpack-dev-server --hot --inline --progress --host 0.0.0.0

Example: Build

An example of building the dist.

Note: Assumes that default webpack.config.js exists at source root.

$ docker run \
  --rm \
  -i \
  -t \
  -v /path/to/source:/app \
  krisgray/webpack \
  webpack
Docker Pull Command
Owner
krisgray
Source Repository

Comments (0)