mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-29 23:21:50 +00:00
Simplify package.json build and start scripts
Move reading readme and versions out of package.json
This commit is contained in:
@@ -5,6 +5,7 @@ import remarkParse from 'remark-parse';
|
||||
import remarkRehype from 'remark-rehype';
|
||||
import {Button, Header, Modal} from 'semantic-ui-react';
|
||||
import {unified} from 'unified';
|
||||
import changelog from '../CHANGELOG.md?raw';
|
||||
|
||||
const LAST_SEEN_VERSION_KEY = 'last_seen_version';
|
||||
|
||||
@@ -19,7 +20,6 @@ export async function getChangelog(maxVersions: number, seenVersion?: string) {
|
||||
? Date.parse(seenVersion.slice(0, 10))
|
||||
: 0;
|
||||
|
||||
const changelog = import.meta.env.VITE_CHANGELOG as string;
|
||||
const changes =
|
||||
changelog
|
||||
.split('##')
|
||||
|
||||
5
src/imports.d.ts
vendored
5
src/imports.d.ts
vendored
@@ -1,2 +1,7 @@
|
||||
declare module '*.jpg';
|
||||
declare module '*.png';
|
||||
declare module '*?raw' {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user