refactor(build): gulpを経由しないでTypeScriptのビルドを行うように
path aliasをサーバーサイドでも使ったりしたいため
This commit is contained in:
parent
94fd5485b6
commit
8432c2c9ea
9 changed files with 106 additions and 50 deletions
28
src/server/web/manifest.json
Normal file
28
src/server/web/manifest.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"short_name": "Misskey",
|
||||
"name": "Misskey",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#313a42",
|
||||
"theme_color": "#86b300",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/static-assets/icons/192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/static-assets/icons/512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"share_target": {
|
||||
"action": "/share/",
|
||||
"params": {
|
||||
"title": "title",
|
||||
"text": "text",
|
||||
"url": "url"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
import * as Koa from 'koa';
|
||||
import * as manifest from '../../../assets/client/manifest.json';
|
||||
import * as manifest from './manifest.json';
|
||||
import { fetchMeta } from '../../misc/fetch-meta';
|
||||
|
||||
module.exports = async (ctx: Koa.Context) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue