output 属性告诉 webpack 在哪里输出它所创建的 bundles,以及如何命名这些文件,默认值为 ./dist

    1. const path = require('path');
    2. module.exports = {
    3. entry: './path/to/my/entry/file.js',
    4. output: {
    5. path: path.resolve(__dirname, 'dist'),
    6. filename: 'my-first-webpack.bundle.js'
    7. }
    8. };