-
Notifications
You must be signed in to change notification settings - Fork 13
/
webpack.main.config.js
39 lines (39 loc) · 1.08 KB
/
webpack.main.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');
const PermissionsOutputPlugin = require('webpack-permissions-plugin');
const path = require('path');
module.exports = {
/**
* This is the main entry point for your application, it's the first file
* that runs in the main process.
*/
entry: './src/main.js',
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules'),
},
experiments: {
topLevelAwait: true
},
plugins: [
new webpack.DefinePlugin({ 'global.GENTLY': false }),
new webpack.DefinePlugin({ 'process.env.FLUENTFFMPEG_COV': false }),
new CopyPlugin({
patterns: [
{from: 'node_modules/ffmpeg-static/ffmpeg*', to: '[name][ext]'},
],
}),
new PermissionsOutputPlugin({
buildFiles: [
{
path: path.resolve(__dirname, '.webpack', 'main', 'ffmpeg'),
fileMode: '755'
},
{
path: path.resolve(__dirname, '.webpack', 'main', 'native_modules', 'ffprobe'),
fileMode: '755'
},
]
})
],
};