https://github.com/schafeld/webpack-playground
Webpack experiments etc.
https://github.com/schafeld/webpack-playground
webpack
Last synced: about 2 months ago
JSON representation
Webpack experiments etc.
- Host: GitHub
- URL: https://github.com/schafeld/webpack-playground
- Owner: schafeld
- Created: 2019-01-19T11:35:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T20:01:13.000Z (over 7 years ago)
- Last Synced: 2026-03-01T22:24:32.766Z (4 months ago)
- Topics: webpack
- Language: JavaScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webpack experiments
This is a work-along for Udemy course and other sources on Webpack.
## Hints
Run webpack from console like this:
```webpack --config=config/webpack.dev.js```
## Notes
The placeholder _[name]_ is replaced by entry key name, i.e. _main:_ (without the colon).
```
entry: {
main: './src/main.js'
},
...
output: {
filename: "[name]-bundle.js",
...
```
It may be necessary to install webpack-dev-server globally
```npm install -g webpack-dev-server```
Then it can be used for development with hotreloading like this
```webpack-dev-server --config=config/webpack.dev.js```
The same command is configured to be run with
```npm run start```
### License
MIT