config of electron is changed
This commit is contained in:
parent
2b1630ffb3
commit
1621676573
|
@ -1,5 +1,6 @@
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
|
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
|
||||||
|
import * as CopyWebpackPlugin from 'copy-webpack-plugin';
|
||||||
import * as webpack from 'webpack';
|
import * as webpack from 'webpack';
|
||||||
import * as nodeExternals from 'webpack-node-externals';
|
import * as nodeExternals from 'webpack-node-externals';
|
||||||
import { getEnviroments } from './enviroment';
|
import { getEnviroments } from './enviroment';
|
||||||
|
@ -67,7 +68,13 @@ const mainConfig: webpack.Configuration = {
|
||||||
Object.assign({}, enviroments, {
|
Object.assign({}, enviroments, {
|
||||||
__PROCESS_KIND__: JSON.stringify('main')
|
__PROCESS_KIND__: JSON.stringify('main')
|
||||||
})
|
})
|
||||||
)
|
),
|
||||||
|
new CopyWebpackPlugin([
|
||||||
|
{
|
||||||
|
from: 'main/resources/**/*',
|
||||||
|
to: path.resolve(__dirname, '..', 'dist')
|
||||||
|
}
|
||||||
|
])
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.ts'],
|
extensions: ['.js', '.ts'],
|
||||||
|
|
|
@ -31,6 +31,9 @@ export class AppWindow {
|
||||||
height: savedWindowState.height,
|
height: savedWindowState.height,
|
||||||
minWidth: this.minWidth,
|
minWidth: this.minWidth,
|
||||||
minHeight: this.minHeight,
|
minHeight: this.minHeight,
|
||||||
|
center: true,
|
||||||
|
autoHideMenuBar: true,
|
||||||
|
title: 'UCAP M Messenger',
|
||||||
// This fixes subpixel aliasing on Windows
|
// This fixes subpixel aliasing on Windows
|
||||||
// See https://github.com/atom/atom/commit/683bef5b9d133cb194b476938c77cc07fd05b972
|
// See https://github.com/atom/atom/commit/683bef5b9d133cb194b476938c77cc07fd05b972
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
|
@ -42,7 +45,8 @@ export class AppWindow {
|
||||||
experimentalFeatures: true,
|
experimentalFeatures: true,
|
||||||
nodeIntegration: true
|
nodeIntegration: true
|
||||||
},
|
},
|
||||||
acceptFirstMouse: true
|
acceptFirstMouse: true,
|
||||||
|
icon: path.join(__dirname, 'resources/image', 'ico_64_64.png')
|
||||||
};
|
};
|
||||||
|
|
||||||
if (__DARWIN__) {
|
if (__DARWIN__) {
|
||||||
|
|
11
package-lock.json
generated
11
package-lock.json
generated
|
@ -2166,6 +2166,17 @@
|
||||||
"integrity": "sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==",
|
"integrity": "sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@types/copy-webpack-plugin": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/copy-webpack-plugin/-/copy-webpack-plugin-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-yQHocgdgES7W5Q2UyxJ5cj/E6MrV1zq3MZ8jdApS9NJKqax+rux9IE3QAbBmNCGbgivEsejrkIq3Rm76JLubkg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/minimatch": "*",
|
||||||
|
"@types/node": "*",
|
||||||
|
"@types/webpack": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@types/crypto-js": {
|
"@types/crypto-js": {
|
||||||
"version": "3.1.43",
|
"version": "3.1.43",
|
||||||
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-3.1.43.tgz",
|
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-3.1.43.tgz",
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
"@ngrx/store": "^8.4.0",
|
"@ngrx/store": "^8.4.0",
|
||||||
"@ngrx/store-devtools": "^8.4.0",
|
"@ngrx/store-devtools": "^8.4.0",
|
||||||
"@ngx-translate/core": "^11.0.1",
|
"@ngx-translate/core": "^11.0.1",
|
||||||
|
"@types/copy-webpack-plugin": "^5.0.0",
|
||||||
"@types/crypto-js": "^3.1.43",
|
"@types/crypto-js": "^3.1.43",
|
||||||
"@types/detect-browser": "^4.0.0",
|
"@types/detect-browser": "^4.0.0",
|
||||||
"@types/extract-text-webpack-plugin": "^3.0.4",
|
"@types/extract-text-webpack-plugin": "^3.0.4",
|
||||||
|
@ -58,6 +59,7 @@
|
||||||
"awesome-node-loader": "^1.1.1",
|
"awesome-node-loader": "^1.1.1",
|
||||||
"awesome-typescript-loader": "^5.2.1",
|
"awesome-typescript-loader": "^5.2.1",
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^3.0.0",
|
||||||
|
"copy-webpack-plugin": "^5.0.4",
|
||||||
"codelyzer": "^5.0.0",
|
"codelyzer": "^5.0.0",
|
||||||
"concurrently": "^4.1.2",
|
"concurrently": "^4.1.2",
|
||||||
"crypto-js": "^3.1.9-1",
|
"crypto-js": "^3.1.9-1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user