Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3191dcc

Browse files
committed
fix: some bugs
1 parent cd4d19b commit 3191dcc

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

packages/fusuma/src/tasks/pdf.js

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const loader = require('../cli/loader');
55
const lazyloadModule = require('../utils/lazyloadModule');
66

77
async function pdf(config) {
8+
if (config.slide.loop) {
9+
console.error('You must disable slide.loop.');
10+
process.exit(1);
11+
}
12+
813
const port = 3455;
914
const { basePath, inputDir, filename } = config.internal;
1015
const inputDirPath = join(basePath, inputDir);

packages/fusuma/src/webpack/webpack.config.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,13 @@ module.exports = (
157157
},
158158
cache: {
159159
type: useCache ? 'filesystem' : 'memory',
160-
buildDependencies: {
161-
config: [__filename],
162-
},
160+
...(useCache
161+
? {
162+
buildDependencies: {
163+
config: [__filename],
164+
},
165+
}
166+
: {}),
163167
},
164168
experiments: {
165169
topLevelAwait: true,

samples/debug/.fusumarc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ slide:
1919
extends:
2020
js: main.js
2121
css: style.css
22+
build:
23+
useCache: false

0 commit comments

Comments
 (0)