mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
chore: release @excalidraw/excalidraw@18.0.0 🎉 (#9127)
This commit is contained in:
@ -20,8 +20,6 @@ module.exports.woff2ServerPlugin = (options = {}) => {
|
||||
return {
|
||||
name: "woff2ServerPlugin",
|
||||
setup(build) {
|
||||
const { outdir, generateTtf } = options;
|
||||
const outputDir = path.resolve(outdir);
|
||||
const fonts = new Map();
|
||||
|
||||
build.onResolve({ filter: /\.woff2$/ }, (args) => {
|
||||
@ -94,9 +92,12 @@ module.exports.woff2ServerPlugin = (options = {}) => {
|
||||
);
|
||||
|
||||
build.onEnd(async () => {
|
||||
if (!generateTtf) {
|
||||
const { outdir } = options;
|
||||
|
||||
if (!outdir) {
|
||||
return;
|
||||
}
|
||||
const outputDir = path.resolve(outdir);
|
||||
|
||||
const isFontToolsInstalled = await which("fonttools", {
|
||||
nothrow: true,
|
||||
|
Reference in New Issue
Block a user