I used this small code to try webpack.
You have to have a working docker and docker-compose on your computer.
-
Clone the repository
$ git clone git@github.com:peti2001/webpack_test.git -
Go the de deploy directory
$ cd webpack_test/deploy -
Build the docker image
$ docker-compose build -
Start the container
$ docker-compose upIt will install all the necessary node.js packages, start Apache2 and start webpack in watch mode. So if you change anything in thewww/srcfolder it will regenerate all the files automatically. -
Check it in the browser Open http://localhost:5000 in your browser.