aaron
057377207a
Some checks failed
release / begin-notification (push) Has been cancelled
release / build-linux (push) Has been cancelled
release / build-msi-installer (push) Has been cancelled
release / build-mac-installer (push) Has been cancelled
release / upload-to-s3 (push) Has been cancelled
release / github-release (push) Has been cancelled
release / end-notification (push) Has been cancelled
41 lines
999 B
JavaScript
41 lines
999 B
JavaScript
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
// Copyright (c) 2015-2016 Yuya Ochiai
|
|
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
|
const {merge} = require('webpack-merge');
|
|
|
|
const base = require('./webpack.config.base');
|
|
|
|
module.exports = merge(base, {
|
|
entry: {
|
|
index: './src/main/app/index.ts',
|
|
},
|
|
externals: {
|
|
'macos-notification-state': 'require("macos-notification-state")',
|
|
'windows-focus-assist': 'require("windows-focus-assist")',
|
|
},
|
|
externalsPresets: {
|
|
electronMain: true,
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.node$/,
|
|
loader: 'node-loader',
|
|
}],
|
|
},
|
|
plugins: [
|
|
new CopyPlugin({
|
|
patterns: [{
|
|
from: 'assets/**/*',
|
|
context: 'src',
|
|
}],
|
|
}),
|
|
],
|
|
node: {
|
|
__filename: true,
|
|
__dirname: true,
|
|
},
|
|
target: 'electron-main',
|
|
});
|