WebPack - Output (bundle)

About

How to write the compiled files to disk.

Example

webpack.config.js

const path = require('path');

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

Documentation / Reference





Discover More
Web - WebPack

Webpack is a bundler written in Node Javascript. entry point. output bundle laravel-mix is a Fluent interface around webpack



Share this page:
Follow us:
Task Runner