-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.main.config.js
43 lines (42 loc) · 1.15 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
40
41
42
43
const webpack = require('webpack');
const WebpackShellPluginNext = require('webpack-shell-plugin-next');
module.exports = {
/**
* This is the main entry point for your application, it's the first file
* that runs in the main process.
*/
entry: './src/index.ts',
// Put your normal webpack config below here
module: {
rules: require('./webpack.rules'),
},
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
},
plugins: [
new webpack.DefinePlugin({
'process.env.FLUENTFFMPEG_COV': false
}),
// new WebpackShellPluginNext({
// onBuildStart: {
// scripts: ['echo "Webpack Start"'],
// },
// onBuildEnd: [
// 'echo "Webpack Start"',
// 'chmod +x .webpack/main/native_modules/ffmpeg',
// 'chmod +x .webpack/main/native_modules/ffprobe',
// `echo "${__dirname}"`
// ]
// })
new WebpackShellPluginNext({
onBuildEnd: {
scripts: [
'chmod +x .webpack/main/native_modules/ffmpeg',
'chmod +x .webpack/main/native_modules/ffprobe',
],
blocking: false,
parallel: true
}
}),
]
};