1. contentBase: path.resolve(__dirname, 'static'),
    2. writeToDisk: true,
    3. compress: true,
    4. port: 8080,
    5. open: true,
    6. publicPath: '/'

    output 的优先级比 contentBase 高

    返回静态文件时才需要用到 contentBase,