mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
chore(nx/desktop): copy .node file for better-sqlite3
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const { join } = require('path');
|
||||
|
||||
const outputDir = join(__dirname, 'dist');
|
||||
|
||||
module.exports = {
|
||||
output: {
|
||||
path: join(__dirname, 'dist'),
|
||||
path: outputDir,
|
||||
},
|
||||
plugins: [
|
||||
new NxAppWebpackPlugin({
|
||||
@@ -17,7 +20,18 @@ module.exports = {
|
||||
generatePackageJson: true,
|
||||
externalDependencies: [
|
||||
"electron/main"
|
||||
],
|
||||
assets: [
|
||||
|
||||
]
|
||||
}),
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: "../../node_modules/better-sqlite3/build/Release",
|
||||
to: join(outputDir, "Release")
|
||||
}
|
||||
]
|
||||
})
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user