[MM-36326][MM-45669] Added Native Node Module support - incl demo to fix DND issue (#2195)
* [MM-36326] Added Native Node Module support - incl demo to fix DND issue * Fix OS per build * Fix to include priority alarms on Windows * Update node command * Fixes for mac (only work on non-MAS build) * Attempt to rebuild properly since electron-builder is having issues with a module * Show me more logs maybe idk * Try with ignore-scripts * Force async to work asyncly * PR feedback and ESLint fixes * Add comment for node-gyp * Revert me: test msi and mac installer * Revert me too * Try reverting back to the old system cause the new one miraculously broke... * Add ignore scripts to makefile * Ignore non-macho files :P * Revert "Revert me too" This reverts commit 074dc9551a2d8ce34a23a3abaeed937d957e8b76. * Revert "Revert me: test msi and mac installer" This reverts commit 0ac998c26a824e7136bdfdc825280a407bb1aa7f.
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
/* eslint-disable import/no-commonjs */
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
const {merge} = require('webpack-merge');
|
||||
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
@@ -24,6 +22,10 @@ module.exports = merge(base, {
|
||||
loadingScreenPreload: './src/main/preload/loadingScreenPreload.js',
|
||||
urlView: './src/main/preload/urlView.js',
|
||||
},
|
||||
externals: {
|
||||
'macos-notification-state': 'require("macos-notification-state")',
|
||||
'windows-focus-assist': 'require("windows-focus-assist")',
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.(js|ts)?$/,
|
||||
@@ -39,11 +41,7 @@ module.exports = merge(base, {
|
||||
},
|
||||
{
|
||||
test: /\.node$/,
|
||||
loader: 'awesome-node-loader',
|
||||
options: {
|
||||
name: '[name].[ext]',
|
||||
rewritePath: path.resolve(__dirname, 'dist'),
|
||||
},
|
||||
loader: 'node-loader',
|
||||
}],
|
||||
},
|
||||
plugins: [
|
||||
|
Reference in New Issue
Block a user