From f7e7522379a2742b9b1f0fb4e4fcc98b365b863c Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Fri, 16 Oct 2020 23:38:56 +0200 Subject: [PATCH] Make server script work --- backend/package.json | 2 +- backend/webpack.config.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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,