WebPack - Output (bundle)

> (World Wide) Web - (W3|WWW) > Web - Building and Shipping > Web - WebPack

1 - About

How to write the compiled files to disk.

2 - Example

webpack.config.js

webpack.config.js
const path = require('path');
 
module.exports = {
    entry: './index.js',
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'dist')
    }
};
Advertising

3 - Documentation / Reference