diff --git a/.github/workflows/publish-rolling.yml b/.github/workflows/publish-rolling.yml index 200ee7c5..fee5a684 100644 --- a/.github/workflows/publish-rolling.yml +++ b/.github/workflows/publish-rolling.yml @@ -206,7 +206,7 @@ jobs: - name: Build executables run: | - pkg . --out-path dist-pkg + pkg . --out-path dist-pkg --no-bytecode --public --options=enable-source-maps - name: Rename linuxstatic to linux run: | diff --git a/package.json b/package.json index c470790f..9c36fe48 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "scripts": { "build": "node scripts/build.js", - "build-pkg": "rm -rf dist && npm run build && pkg . --out-path dist-pkg", + "build-pkg": "rm -rf dist && npm run build && pkg . --out-path dist-pkg --no-bytecode --public --options=enable-source-maps", "format-source": "prettier -w .", "check-source-formatting": "prettier -c .", "check-types": "tsc", diff --git a/server/config/webpack.config.prod.js b/server/config/webpack.config.prod.js index 02beff78..5ae980ac 100644 --- a/server/config/webpack.config.prod.js +++ b/server/config/webpack.config.prod.js @@ -51,6 +51,7 @@ module.exports = { filename: 'index.js', libraryTarget: 'commonjs2', }, + devtool: 'inline-source-map', optimization: { minimize: true, minimizer: [