Files
vscode-extension-samples/webpack-sample
Matt Bierner 8465a39a90 Bump to TS 5.6.2
Also bumps `@types/node` to fix compat issues with new TS lib typings
2024-10-03 11:53:22 -07:00
..
2022-06-28 08:35:13 -07:00
2022-11-04 14:27:02 -07:00
2020-05-29 14:13:32 -07:00
2018-09-20 10:56:48 +02:00
2022-05-12 17:18:02 +01:00
2024-10-03 11:53:22 -07:00
2024-10-03 11:53:22 -07:00
2024-06-03 17:18:25 +02:00
2022-02-28 13:45:21 -08:00
2019-03-04 14:15:59 +01:00

Webpack & Extensions

This is an extension that uses https://webpack.js.org to bundle and minify its sources. Using webpack will help to reduce the install- and startup-time of large extensions because instead of hundreds of files, a single file is produced.

Configuration

Webpack is configured in the webpack.config.js-file. Find annotation inside the file itself or refer to the excellent webpack documentation: https://webpack.js.org/configuration/. In short, the config-files defines the entry point of the extension, to use TypeScript, to produce a commonjs-module, and what modules not to bundle.

Scripts

The scripts-section of the package.json-file has entries for webpack. Those compile TypeScript and produce the bundle as well as producing a minified production build. Note, that there is no dedicated TypeScript-script as webpack takes care of that.