revert: devtool

This commit is contained in:
RiESAEX 2023-02-13 08:23:20 +00:00
parent 0319b4f3bc
commit 8afec60af7

View File

@ -60,7 +60,7 @@ export default async function getConfig({ api, cwd, config, env, entry = {}, mod
webpackConfig.mode(env);
webpackConfig.stats('errors-only');
webpackConfig.externals(config.externals || {});
webpackConfig.devtool(false);
webpackConfig.devtool(isDev ? config.devtool || 'cheap-module-source-map' : config.devtool);
// --------------- cache -----------
webpackConfig.cache({