2025-04-22 17:13:17 +03:00
|
|
|
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
|
2025-04-24 11:18:08 +03:00
|
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
2025-04-22 17:13:17 +03:00
|
|
|
const { join } = require('path');
|
|
|
|
|
2025-04-24 11:18:08 +03:00
|
|
|
const outputDir = join(__dirname, 'dist');
|
|
|
|
|
2025-04-22 17:13:17 +03:00
|
|
|
module.exports = {
|
|
|
|
output: {
|
2025-04-24 11:18:08 +03:00
|
|
|
path: outputDir
|
2025-04-22 17:13:17 +03:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new NxAppWebpackPlugin({
|
|
|
|
target: 'node',
|
|
|
|
compiler: 'tsc',
|
|
|
|
main: './src/main.ts',
|
|
|
|
tsConfig: './tsconfig.app.json',
|
|
|
|
assets: ["./src/assets"],
|
|
|
|
optimization: false,
|
|
|
|
outputHashing: 'none',
|
|
|
|
generatePackageJson: true,
|
2025-04-24 11:18:08 +03:00
|
|
|
}),
|
|
|
|
new CopyPlugin({
|
|
|
|
patterns: [
|
|
|
|
{
|
|
|
|
from: "node_modules/better-sqlite3/build/Release",
|
|
|
|
to: join(outputDir, "Release")
|
2025-04-24 12:35:53 +03:00
|
|
|
},
|
2025-04-24 11:18:08 +03:00
|
|
|
]
|
2025-04-22 17:13:17 +03:00
|
|
|
})
|
2025-04-22 19:47:27 +03:00
|
|
|
]
|
2025-04-22 17:13:17 +03:00
|
|
|
};
|