Add icon to window configuration. (#3365)
This commit is contained in:
parent
6b701bb082
commit
1663eea3bf
@ -10,6 +10,7 @@ export function createWindow (environment: string): Promise<unknown> {
|
|||||||
|
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
height,
|
height,
|
||||||
|
icon: path.join(__dirname, 'icon.png'),
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
enableRemoteModule: false,
|
enableRemoteModule: false,
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
|
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const ENV = process.env.NODE_ENV || 'production';
|
const ENV = process.env.NODE_ENV || 'production';
|
||||||
@ -44,6 +45,9 @@ function createWebpack () {
|
|||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: path.join(__dirname, '/build')
|
path: path.join(__dirname, '/build')
|
||||||
},
|
},
|
||||||
|
plugins: [
|
||||||
|
new CopyWebpackPlugin({ patterns: [{ from: 'assets' }] })
|
||||||
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx']
|
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx']
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user