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:
28
webpack.config.preload.js
Normal file
28
webpack.config.preload.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
// Copyright (c) 2015-2016 Yuya Ochiai
|
||||
|
||||
// This files uses CommonJS.
|
||||
/* eslint-disable import/no-commonjs */
|
||||
'use strict';
|
||||
|
||||
const {merge} = require('webpack-merge');
|
||||
|
||||
const base = require('./webpack.config.base');
|
||||
|
||||
module.exports = merge(base, {
|
||||
entry: {
|
||||
internalAPI: './src/main/preload/internalAPI.js',
|
||||
externalAPI: './src/main/preload/externalAPI.ts',
|
||||
},
|
||||
externalsPresets: {
|
||||
electronPreload: true,
|
||||
},
|
||||
node: {
|
||||
__filename: true,
|
||||
__dirname: true,
|
||||
},
|
||||
target: 'electron-preload',
|
||||
});
|
||||
|
||||
/* eslint-enable import/no-commonjs */
|
Reference in New Issue
Block a user