As a developer, I want to use a bundler to be able to build static assets from modules. The tool I seem to remember to use in the past to do this task is Webpack, so I'll also try to use that tool in DoctorPlan.
Webpack ~needs a configuration file to work~ works better with a configuration file. That file should follow the guidelines described in this documentation to make it work with DoctorPlan.
In our package.json file, there should also be a watch target and a build target. The latter will build the static assets of the project; the former will keep waiting for changes in the source files and will apply our build rules to build those static assets on-the-fly.
As a developer, I want to use a bundler to be able to build static assets from modules. The tool I seem to remember to use in the past to do this task is Webpack, so I'll also try to use that tool in DoctorPlan.
Webpack ~needs a configuration file to work~ works better with a configuration file. That file should follow the guidelines described in this documentation to make it work with DoctorPlan.
In our
package.json
file, there should also be awatch
target and abuild
target. The latter will build the static assets of the project; the former will keep waiting for changes in the source files and will apply our build rules to build those static assets on-the-fly.