diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-05-01 19:34:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-01 19:34:25 +0200 |
| commit | 2ee4175437bbfcddf98e5eacba9b019113716ac8 (patch) | |
| tree | aff6c7c9adfc27f0f33ab4e14edcf17829dbb282 /electron/service/config/main.js | |
| parent | eb64c88a8bf9c8fe66c33a5309d28e526b994d25 (diff) | |
Remove electron entirely (#2859)
Co-authored-by: rejbasket
Diffstat (limited to 'electron/service/config/main.js')
| -rw-r--r-- | electron/service/config/main.js | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/electron/service/config/main.js b/electron/service/config/main.js deleted file mode 100644 index 3083dea0..00000000 --- a/electron/service/config/main.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict' - -const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin') -const config = require('../project.config') - -const resolveClientEnv = require('../utils/resolveClientEnv') -const paths = require('../utils/paths') -const { merge } = require('webpack-merge') -const TerserPlugin = require('terser-webpack-plugin') -const cssWebpackConfig = require('./css') -const terserOptions = require('./terserOptions') -const isProd = process.env.NODE_ENV === 'production' - -module.exports = merge(cssWebpackConfig, { - context: process.cwd(), - mode: 'production', - entry: { - main: './src/main/index.js', - preload: './src/main/preload.js', - }, - - node: { - __dirname: false, - }, - - optimization: { - minimize: true, - minimizer: [new TerserPlugin(terserOptions())], - moduleIds: 'named', - }, - target: ['electron-main'], - - output: { - path: paths.resolve(config.outputDir), - publicPath: config.dev.publicPath, - filename: '[name].js', - }, - - resolve: { - alias: { - '@': paths.resolve('src'), - }, - extensions: ['.ts', '.tsx', '.js', '.jsx', '.vue', '.json', 'html', 'ejs'], - }, - - plugins: [ - new CaseSensitivePathsPlugin(), - ], - - module: { - noParse: /^(vue|vue-router)$/, - - rules: [ - // ts - { - test: /\.tsx?$/, - use: [ - 'thread-loader', - 'babel-loader', - { - loader: 'ts-loader', - options: { - transpileOnly: true, - appendTsSuffixTo: ['\\.vue$'], - happyPackMode: true, - }, - }, - ], - }, - ], - }, -} -)
\ No newline at end of file |
