A collection of different Webpack setups for quick referencing or starting from.
Each branch has a different setup for the named purpose, such as typescript
showing a TypeScript variation.
NOTE: Typically the dist
or public
folder is ignored in git, but for demonstrations purposes I've left it tracked.
- Clone the repo
- Select the branch you want
- Run
npm i
to install dependencies - Run one of the following commands, depending on intent:
npm run build
npm run build-dev
npm run watch
npm start
After running a build command, you can see the output without opening a browser by running:
node dist/main.js