fix: removes prod devtool
This commit is contained in:
@@ -22,10 +22,15 @@ export const build = (): void => {
|
||||
webpack(webpackProdConfig, (err, stats) => { // Stats Object
|
||||
if (err || stats.hasErrors()) {
|
||||
// Handle errors here
|
||||
console.error(stats.toString({
|
||||
chunks: false,
|
||||
colors: true,
|
||||
}));
|
||||
|
||||
if (stats) {
|
||||
console.error(stats.toString({
|
||||
chunks: false,
|
||||
colors: true,
|
||||
}));
|
||||
} else {
|
||||
console.error(err.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
@@ -19,7 +19,6 @@ export default (payloadConfig: Config): Configuration => {
|
||||
chunkFilename: '[name].[chunkhash].js',
|
||||
},
|
||||
mode: 'production',
|
||||
devtool: 'none',
|
||||
stats: 'errors-only',
|
||||
optimization: {
|
||||
minimizer: [new TerserJSPlugin({}), new CssMinimizerPlugin()],
|
||||
|
||||
Reference in New Issue
Block a user