mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
webpack update to switch on mode for devtool
This commit is contained in:
@@ -39,7 +39,7 @@ fs.readdirSync('./').filter(step => {
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = function() {
|
||||
module.exports = function(env, argv) {
|
||||
return {
|
||||
entry: { ...entries, markdownReadme: './markdownReadme/src/index.ts' },
|
||||
module: {
|
||||
@@ -116,6 +116,6 @@ module.exports = function() {
|
||||
inline: true
|
||||
},
|
||||
stats: 'minimal',
|
||||
devtool: process.env.NODE_ENV === 'development' ? 'eval' : 'source-map'
|
||||
devtool: argv.mode === 'development' ? 'eval' : 'source-map'
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user