electron-renderer webpack seems to be generating main_renderer.js
parent
51575d2f56
commit
12d9a8db78
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,20 +1,20 @@
|
||||
import _ from 'lodash';
|
||||
import { MessageModel } from '../ts/models/message';
|
||||
import { isMacOS } from '../ts/OS';
|
||||
import { queueAllCached } from '../ts/receiver/receiver';
|
||||
import { getConversationController } from '../ts/session/conversations';
|
||||
import { AttachmentDownloads } from '../ts/session/utils';
|
||||
import { getOurPubKeyStrFromCache } from '../ts/session/utils/User';
|
||||
import { BlockedNumberController } from '../ts/util';
|
||||
import { ExpirationTimerOptions } from '../ts/util/expiringMessages';
|
||||
import { Notifications } from '../ts/util/notifications';
|
||||
import { Registration } from '../ts/util/registration';
|
||||
import { isSignInByLinking, Storage } from '../ts/util/storage';
|
||||
|
||||
import * as Data from '../ts/data/data';
|
||||
import { MessageModel } from '../models/message';
|
||||
import { isMacOS } from '../OS';
|
||||
import { queueAllCached } from '../receiver/receiver';
|
||||
import { getConversationController } from '../session/conversations';
|
||||
import { AttachmentDownloads } from '../session/utils';
|
||||
import { getOurPubKeyStrFromCache } from '../session/utils/User';
|
||||
import { BlockedNumberController } from '../util';
|
||||
import { ExpirationTimerOptions } from '../util/expiringMessages';
|
||||
import { Notifications } from '../util/notifications';
|
||||
import { Registration } from '../util/registration';
|
||||
import { isSignInByLinking, Storage } from '../util/storage';
|
||||
|
||||
import * as Data from '../data/data';
|
||||
import Backbone from 'backbone';
|
||||
import { SessionRegistrationView } from '../ts/components/registration/SessionRegistrationView';
|
||||
import { SessionInboxView } from '../ts/components/SessionInboxView';
|
||||
import { SessionRegistrationView } from '../components/registration/SessionRegistrationView';
|
||||
import { SessionInboxView } from '../components/SessionInboxView';
|
||||
// tslint:disable: max-classes-per-file
|
||||
|
||||
// Globally disable drag and drop
|
@ -0,0 +1,61 @@
|
||||
const path = require('path');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
module.exports = [
|
||||
// {
|
||||
// // bundling mode
|
||||
|
||||
// mode: 'development', // mode: 'production',
|
||||
|
||||
// // entry files
|
||||
|
||||
// entry: './main.js',
|
||||
// target: 'electron-main',
|
||||
// module: {
|
||||
// // loaders
|
||||
|
||||
// rules: [
|
||||
// {
|
||||
// test: /\.tsx?$/,
|
||||
// include: /ts/,
|
||||
// use: [{ loader: 'ts-loader' }],
|
||||
// exclude: /node_modules/,
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// // output bundles (location)
|
||||
|
||||
// output: {
|
||||
// path: path.resolve(__dirname, 'dist'),
|
||||
// filename: 'electron.js',
|
||||
// },
|
||||
// },
|
||||
|
||||
{
|
||||
mode: 'development',
|
||||
entry: './ts/mains/main_renderer.ts',
|
||||
target: 'electron-renderer',
|
||||
devtool: 'source-map',
|
||||
resolve: {
|
||||
extensions: ['.ts', '.tsx', '.js', '.json'],
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts(x?)$/,
|
||||
include: [path.resolve(__dirname, 'ts'), path.resolve(__dirname, 'js')],
|
||||
use: [{ loader: 'ts-loader' }],
|
||||
},
|
||||
],
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist', 'js'),
|
||||
filename: 'electron-renderer.js',
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: './background.html',
|
||||
}),
|
||||
],
|
||||
},
|
||||
];
|
Loading…
Reference in New Issue