ing
This commit is contained in:
parent
aae212a9db
commit
c9a450d887
|
@ -6,7 +6,6 @@ module.exports = {
|
||||||
target: 'web',
|
target: 'web',
|
||||||
entry: {
|
entry: {
|
||||||
app: [
|
app: [
|
||||||
'react-hot-loader/patch',
|
|
||||||
Path.resolve(__dirname, '../../src/ts/@overflow/app/index.tsx')
|
Path.resolve(__dirname, '../../src/ts/@overflow/app/index.tsx')
|
||||||
],
|
],
|
||||||
vendor: Object.keys(packages.dependencies)
|
vendor: Object.keys(packages.dependencies)
|
||||||
|
|
|
@ -8,6 +8,7 @@ const configBase = require('./webpack.config.base.js');
|
||||||
module.exports = WebpackMerge(configBase, {
|
module.exports = WebpackMerge(configBase, {
|
||||||
entry: {
|
entry: {
|
||||||
app: [
|
app: [
|
||||||
|
'react-hot-loader/patch'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -52,10 +52,15 @@ import appConfig, { Config, ReduxState } from './config';
|
||||||
|
|
||||||
import App from './views/App';
|
import App from './views/App';
|
||||||
|
|
||||||
injectTapEventPlugin();
|
declare global {
|
||||||
|
interface Window {
|
||||||
|
devToolsExtension: () => any;
|
||||||
|
}
|
||||||
|
const process: any;
|
||||||
|
const module: any;
|
||||||
|
}
|
||||||
|
|
||||||
// const isProduction:boolean = process.env.NODE_ENV === 'production' ? true : false;
|
injectTapEventPlugin();
|
||||||
// const useReduxDevTools = window.devToolsExtension && !isProduction ? true : false;
|
|
||||||
|
|
||||||
class Application {
|
class Application {
|
||||||
private static isProduction:boolean = process.env.NODE_ENV === 'production' ? true : false;
|
private static isProduction:boolean = process.env.NODE_ENV === 'production' ? true : false;
|
||||||
|
@ -112,13 +117,13 @@ class Application {
|
||||||
private initRpcClient(): Promise<WebSocketRPC> {
|
private initRpcClient(): Promise<WebSocketRPC> {
|
||||||
const rpcClient = new Promise<WebSocketRPC>((resolve, reject) => {
|
const rpcClient = new Promise<WebSocketRPC>((resolve, reject) => {
|
||||||
let client = new WebSocketRPC(this.config.rpc.url);
|
let client = new WebSocketRPC(this.config.rpc.url);
|
||||||
client.initialize()
|
// client.initialize()
|
||||||
.then(() => {
|
// .then(() => {
|
||||||
resolve(client);
|
// resolve(client);
|
||||||
})
|
// })
|
||||||
.catch((err: any) => {
|
// .catch((err: any) => {
|
||||||
reject(err);
|
// reject(err);
|
||||||
});
|
// });
|
||||||
resolve(client);
|
resolve(client);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -171,7 +176,7 @@ class Application {
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}>
|
}}>
|
||||||
<h1>Loading...</h1>
|
<h1>Loading......</h1>
|
||||||
</div>,
|
</div>,
|
||||||
this.container,
|
this.container,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user