Merge pull request #151 from mempool/wiz/angular-universal

Various fixes (lol)
This commit is contained in:
softsimon 2020-11-08 00:39:44 +07:00 committed by GitHub
commit ea04dfa62f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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);

View File

@ -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/';
}