1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-01-05 22:42:58 +00:00

fix(pwa): site baseurl not passed to app.js (#1955)

This commit is contained in:
Cotes Chung
2024-09-18 22:32:26 +08:00
committed by GitHub
parent 3ab3b844d2
commit 5a63244721
5 changed files with 14 additions and 12 deletions

View File

@@ -1,7 +1,6 @@
import babel from '@rollup/plugin-babel';
import terser from '@rollup/plugin-terser';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import yaml from '@rollup/plugin-yaml';
import fs from 'fs';
import pkg from './package.json';
@@ -43,7 +42,7 @@ function build(filename, { src = SRC_DEFAULT, jekyll = false } = {}) {
format: 'iife',
name: 'Chirpy',
banner,
sourcemap: !isProd
sourcemap: !isProd && !jekyll
},
watch: {
include: `${src}/**`
@@ -55,7 +54,6 @@ function build(filename, { src = SRC_DEFAULT, jekyll = false } = {}) {
plugins: ['@babel/plugin-transform-class-properties']
}),
nodeResolve(),
yaml(),
isProd && terser(),
jekyll && insertFrontmatter()
]