mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
enable source map generation
This commit is contained in:
@@ -9,8 +9,8 @@ const path = require('path');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
stats: 'errors-only',
|
||||
// mode: 'none', // default is production
|
||||
mode: 'production',
|
||||
// mode: 'none',
|
||||
context: __dirname,
|
||||
target: 'node',
|
||||
node: {
|
||||
@@ -33,5 +33,14 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin([{ from: './out/*.sh', to: '[name].sh' }])
|
||||
]
|
||||
],
|
||||
stats: 'errors-only',
|
||||
devtool: 'source-map',
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.js$/,
|
||||
use: ["source-map-loader"],
|
||||
enforce: "pre"
|
||||
}]
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user