I would like to use the SourceMaps generated by the Closure Compiler using Webpack, but I cannot figure out how to do this.
Here is my webpack configurator:
const ClosureCompiler = require('google-closure-compiler-js').webpack;
module.exports = {
devtool: 'source-map',
entry: './src/app.js',
output: {
path: __dirname + "/build/",
filename: "bundle.js",
},
plugins: [
new ClosureCompiler({
compiler: {
language_in: 'ECMASCRIPT5',
language_out: 'ECMASCRIPT5',
compilation_level: 'ADVANCED',
create_source_map: __dirname + './output.js.map'
},
concurrency: 3,
})
]
};
When I start webpack, nothing happens. What for? What am I doing wrong? Thank you for your help.
source
share