Skip to content

Commit

Permalink
Package ffmpeg-static as an external dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Aug 4, 2024
1 parent 4492b65 commit 4e115bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/main/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = (env: BuildEnv): webpack.Configuration => {
externals: {
'sqlite3': 'commonjs sqlite3',
'@nuclear/scanner': 'commonjs ./scanner.node',
'ffmpeg-static': 'commonjs ffmpeg-static'
'ffmpeg-static': 'commonjs ./ffmpeg-static'
},
output: {
path: path.resolve(__dirname, outputDir),
Expand Down Expand Up @@ -78,7 +78,8 @@ module.exports = (env: BuildEnv): webpack.Configuration => {
patterns: [
{ from: 'preload.js' },
{ from: path.resolve(__dirname, '../../.env') },
{ from: path.resolve(SCANNER_DIR, 'index.node'), to: 'scanner.node' }
{ from: path.resolve(SCANNER_DIR, 'index.node'), to: 'scanner.node' },
{ from: '../../node_modules/ffmpeg-static', to: 'ffmpeg-static' }
]
}),
new webpack.NormalModuleReplacementPlugin(/(.*)system-api(\.*)/, (resource) => {
Expand Down

0 comments on commit 4e115bd

Please sign in to comment.