I am working on the chainWebpack
section within my vue.config.js
.
chainWebpack: config => {
// Add "node_modules" alias
config.resolve.alias
.set('node_modules', path.join(__dirname, './node_modules'));
config.devtool('source-map');
// Do not remove whitespaces
config.module.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => {
options.compilerOptions.preserveWhitespace = true;
return options;
});
}
My next task is to add the infrastructureLogging
section in order to direct logging to stdout
instead of stderr
:
module.exports = {
//...
infrastructureLogging: {
stream: process.stdout,
},
};
Is there a way I can accomplish this using the chainWebpack
section?