0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-01-09 00:10:08 -05:00
penpot-export/packages/demos/demo-css/penpot-export.config.js
Roberto Redradix ba9886beb4 feat(demo): split demos per output format
Adds a SCSS-specific demo
2023-09-15 18:12:15 +02:00

33 lines
821 B
JavaScript

// @ts-check
require('dotenv').config({ path: '../.env' })
if (typeof process.env.PENPOT_ACCESS_TOKEN !== 'string') {
throw new Error('Missing PENPOT_ACCESS_TOKEN environment variable')
}
/**
* @type {import('@penpot-export/core').UserConfig}
*/
const config = {
instance: process.env.PENPOT_BASE_URL || undefined,
accessToken: process.env.PENPOT_ACCESS_TOKEN,
files: [
{
fileId: '4a499800-872e-80e1-8002-fc0b585dc061',
colors: [
{
format: 'css',
output: 'styles/colors.css', // 👈 Path where your CSS file should be generated.
},
],
typographies: [
{
format: 'css',
output: 'styles/typographies.css', // 👈 Path where your CSS file should be generated.
},
],
},
],
}
module.exports = config