Various build and developer fixes, some optimizations (#2975)
* Various build and developer fixes, some optimizations * Fix the linux build * Fix afterpack * Fix notarization variables * Revert macos-notification-state changes from this PR * Only build the tar for PRs * Also ci * Fix copy script * Fix copy script more * Remove @babel/cli * Fix windows build * Fix MAS build
This commit is contained in:
@@ -30,16 +30,24 @@ if (isTest) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
// Some plugins cause errors on the app, so use few plugins.
|
||||
// https://webpack.js.org/concepts/mode/#mode-production
|
||||
mode: isProduction ? 'none' : 'development',
|
||||
mode: isProduction ? 'production' : 'development',
|
||||
bail: true,
|
||||
plugins: [
|
||||
new webpack.DefinePlugin(codeDefinitions),
|
||||
],
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.(js|jsx|ts|tsx)?$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel-loader',
|
||||
}],
|
||||
},
|
||||
devtool: isProduction ? undefined : 'inline-source-map',
|
||||
resolve: {
|
||||
modules: [
|
||||
'node_modules',
|
||||
'./src',
|
||||
],
|
||||
alias: {
|
||||
renderer: path.resolve(__dirname, 'src/renderer'),
|
||||
main: path.resolve(__dirname, './src/main'),
|
||||
|
Reference in New Issue
Block a user