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({
|
||||
height,
|
||||
icon: path.join(__dirname, 'icon.png'),
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
enableRemoteModule: false,
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
/* eslint-disable camelcase */
|
||||
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const path = require('path');
|
||||
|
||||
const ENV = process.env.NODE_ENV || 'production';
|
||||
@ -44,6 +45,9 @@ function createWebpack () {
|
||||
filename: '[name].js',
|
||||
path: path.join(__dirname, '/build')
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin({ patterns: [{ from: 'assets' }] })
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx']
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user