⊗jsSpMdWS 204 of 294 menu

Configuring the Webpack bundler in JavaScript

The installed bundler must be configured. This is done in the special webpack.config.js configuration file. In this file, the mode setting controls the bundle mode, the entry setting sets an entry point, and the output setting sets the bundle name.

Let's create a configuration file with the following content:

export default { mode: 'development', entry: './src/index.js', output: { filename: './dist/bundle.js', } };

Create the described configuration file in your working folder.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline