mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 11:36:38 +02:00
🐛 Include debug css in local dev only
This commit is contained in:
parent
d30eca016e
commit
e74ab949ba
1 changed files with 2 additions and 0 deletions
|
@ -303,6 +303,7 @@ async function generateSvgSprites() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function generateTemplates() {
|
async function generateTemplates() {
|
||||||
|
const isDebug = process.env.NODE_ENV !== "production";
|
||||||
await fs.mkdir("./resources/public/", { recursive: true });
|
await fs.mkdir("./resources/public/", { recursive: true });
|
||||||
|
|
||||||
const translations = await readTranslations();
|
const translations = await readTranslations();
|
||||||
|
@ -325,6 +326,7 @@ async function generateTemplates() {
|
||||||
manifest: manifest,
|
manifest: manifest,
|
||||||
translations: JSON.stringify(translations),
|
translations: JSON.stringify(translations),
|
||||||
pluginRuntimeUri,
|
pluginRuntimeUri,
|
||||||
|
isDebug,
|
||||||
},
|
},
|
||||||
partials,
|
partials,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue