diff --git a/backend/package.json b/backend/package.json index c40b15a..88ca093 100644 --- a/backend/package.json +++ b/backend/package.json @@ -3,7 +3,7 @@ "description": "Game server for decla.red", "keywords": [], "author": "AndrĂ¡s Schmelczer (https://schmelczer.dev/)", - "version": "0.0.1", + "version": "0.0.1-try2", "main": "dist/main.js", "scripts": { "build": "npx webpack --mode production", diff --git a/backend/webpack.config.js b/backend/webpack.config.js index b0586e3..84b30bc 100644 --- a/backend/webpack.config.js +++ b/backend/webpack.config.js @@ -3,6 +3,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const nodeExternals = require('webpack-node-externals'); const { ESBuildPlugin } = require('esbuild-loader'); const TerserJSPlugin = require('terser-webpack-plugin'); +const webpack = require('webpack'); const PATHS = { entryPoint: path.resolve(__dirname, 'src/main.ts'), @@ -41,6 +42,7 @@ module.exports = (env, argv) => ({ ], }, plugins: [ + new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true }), new ESBuildPlugin(), new CleanWebpackPlugin({ protectWebpackAssets: false,