============================= Bundling ToDoMVC with WebPack ============================= `Source code `_ We now have the frontend moved out of the back end, served by a static web server at a different URL. Great! Let's use :doc:`Webpack <../webpack/index>` to bundle our JavaScript and run under its development server, giving us hands-free browser reloading. Webpack gives us browser-side module loading, so we'll switch ``app.js`` and ``todo.js`` to use CommonJS modules. Steps ===== #. From the previous step, make a virtual env if necessary, then install if needed the npm and Python dependencies. #. Hook up ``ESLint`` in preferences if necessary. #. Install our *new* dependencies: .. code-block:: bash npm install --save-dev webpack webpack-dev-server #. Update our HTML file, replacing ``