Files
ipwa-backend/webpack.config.js
2025-03-06 12:24:20 +01:00

33 lines
747 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import path from "path";
import nodeExternals from "webpack-node-externals";
import { TsconfigPathsPlugin } from "tsconfig-paths-webpack-plugin";
export default {
entry: './src/index.ts',
target: "node",
externals: [nodeExternals()],
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
plugins: [
new TsconfigPathsPlugin()
]
},
externalsPresets: {
node: true
},
output: {
path: path.resolve("dist"),
filename: "ipwa-server.js"
},
mode: 'production',
plugins: []
}