SourceMap when using NODE_ENV=dev.

This commit is contained in:
John Livingston 2021-04-10 03:22:55 +02:00
parent 59cd78ee82
commit f21114a6a7

View File

@ -9,6 +9,7 @@ const clientFiles = [
let config = clientFiles.map(f => ({
entry: "./client/" + f + ".ts",
devtool: process.env.NODE_ENV === 'dev' ? 'eval-source-map' : false,
module: {
rules: [
{
@ -31,6 +32,7 @@ let config = clientFiles.map(f => ({
config.push({
entry: "./conversejs/builtin.js",
devtool: process.env.NODE_ENV === 'dev' ? 'eval-source-map' : false,
output: {
path: path.resolve(__dirname, "./dist/client/static"),
filename: "./builtin.js"
@ -39,6 +41,7 @@ config.push({
config.push({
entry: "./client/settings.ts",
devtool: process.env.NODE_ENV === 'dev' ? 'eval-source-map' : false,
module: {
rules: [
{