Skip to content

Fast webpack configuration with HMR enabled in docker

License

Notifications You must be signed in to change notification settings

szujak/webpack-hmr-docker

Repository files navigation

How to start

Clone repository

git clone git@github.com:szujak/webpack-hmr-docker.git

Go to the folder

cd webpack-hmr-docker

Run docker

docker-compose up
docker-compose up --build # if you want to rebuild image from tools/docker/Dockerfile

Shoutdown

docker-compose down -v

Modyfications

Changing PORT

# docker-compose.yml
services:
    app:
        ports:
            - 4444:4444
# tools/docker/Dockerfile
ENV PORT=4444

Changing destination folder in docker

# docker-compose.yml
services:
    app:
        volumes:
            - .:/my/own/path
# tools/docker/Dockerfile
ENV APP_PATH=/my/own/path

Changing container name

# docker-compose.yml
services:
    app:
        container_name: my_awesome_name

About

Fast webpack configuration with HMR enabled in docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published