Install webpack & webpack-cli globally
Webpack is used to compile JavaScript modules. Once installed, you can interact with webpack either from its CLI or API. If you're still new to webpack, please read through the core concepts and this comparison to learn why you might use it over the other tools that are out in the community.
// devcontainer.json
"features": {
"ghcr.io/devcontainers-community/features/webpack-cli:1": {}
}You can pin a specific version of the npm package like this:
// devcontainer.json
"features": {
"ghcr.io/devcontainers-community/features/webpack-cli:1": {
"version": "1.2.3"
}
}