mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 10:21:52 +01:00
Merge pull request #151 from mempool/wiz/angular-universal
Various fixes (lol)
This commit is contained in:
commit
ea04dfa62f
@ -32,7 +32,7 @@
|
||||
"e2e": "ng e2e",
|
||||
"dev:ssr": "ng run mempool:serve-ssr",
|
||||
"serve:ssr": "node dist/mempool/server/main.js",
|
||||
"build:ssr": "ng build --prod && ng run mempool:server:production",
|
||||
"build:ssr": "npm run build && ng run mempool:server:production",
|
||||
"prerender": "ng run mempool:prerender"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -12,7 +12,7 @@ import { AppServerModule } from './src/main.server';
|
||||
import { APP_BASE_HREF } from '@angular/common';
|
||||
import { existsSync } from 'fs';
|
||||
|
||||
const template = fs.readFileSync(path.join(__dirname, '../../mempool', 'index.html')).toString();
|
||||
const template = fs.readFileSync(path.join(__dirname, '../../mempool/browser/', 'index.html')).toString();
|
||||
|
||||
const win = domino.createWindow(template);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
var https = require('https');
|
||||
var fs = require('fs');
|
||||
|
||||
var PATH = 'dist/mempool/resources/';
|
||||
var PATH = 'dist/mempool/browser/resources/';
|
||||
if (process.argv[2] && process.argv[2] === 'dev') {
|
||||
PATH = 'src/resources/';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user