Make server script work
This commit is contained in:
parent
e2129bbb26
commit
f7e7522379
2 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
"description": "Game server for decla.red",
|
||||
"keywords": [],
|
||||
"author": "András Schmelczer <andras@schmelczer.dev> (https://schmelczer.dev/)",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.1-try2",
|
||||
"main": "dist/main.js",
|
||||
"scripts": {
|
||||
"build": "npx webpack --mode production",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue