feat: generate source maps for production

This commit is contained in:
Asnxthaony 2023-05-27 00:39:09 +08:00
parent 7d9b34ecc9
commit 46cccdb708
No known key found for this signature in database
GPG Key ID: 6537C59306464F54

View File

@ -142,7 +142,7 @@ export default function (env?: Env): webpack.Configuration {
experiments: {
syncWebAssembly: true,
},
devtool: isDev ? 'eval-source-map' : false,
devtool: isDev ? 'eval-source-map' : 'source-map',
devServer: {
headers: {
'Access-Control-Allow-Origin': '*',