如何在Webpack的SourceMapDevToolPlugin中包含或排除哈希块?

时间:2019-03-18 22:01:46

标签: webpack source-maps

我的输出文件名包括id和chunkhash,那么如何在SourceMapDevToolPlugin中定位这些输入模块之一?这是我的配置:

entry: {
        app: './src/main'
},
output: {
        filename: '[id].[chunkhash].js',
},
plugins: [
        new webpack.SourceMapDevToolPlugin({
            filename: '[id].[chunkhash].js.map',
            include: ['app'] // I want to include this entry but [name] isn't in the filename.
        })
 ]

0 个答案:

没有答案