Webpack Starters for reference
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.
Start using for a new project, or playground
- Clone the repo
- Select the branch you want
- Run
npm i
to install dependencies - Run one of the following commands, depending on intent:
Production Build
npm run build
Development Build
npm run build-dev
Development Build, watching for file changes
npm run watch
Development Server on port :8080
npm start
See output without browser
After running a build command, you can see the output without opening a browser by running:
node dist/main.js