This repro contains examples on how to setup Docker containers for webpack. This repro comes with both plain webpack and laravel-elixir (6.0+).
Docker 1.10+
Change the var NPM_COMMAND
to test
in your docker-compose.yml (you can find an example in docker-compose-test.yml
).
docker exec -i <containername> npm test
docker-compose -f docker-compose.yml -f docker-compose-test.yml up
Want to contribute? Awesome. Just send a pull request.
Docker-Webpack-Containers is released under the MIT License.