⊗tlWpPnBN 23 of 55 menu

Webpack Build File Names

The [name] command allows you to specify where the entry point name will be inserted. This feature allows you to configure the names of your build files. For example, let's make the build files named f1.build.js and f2.build.js:

export default { entry: { f1: './src/test1.js', f2: './src/test2.js' }, output: { filename: '[name].build.js', } };

The following settings are given:

export default { entry: { test1: './src/test1.js', test2: './src/test2.js', test3: './src/test3.js' }, };

Modify the settings so that the resulting files are named test1.bund.js, test2.bund.js, and test3.bund.js.

enru