Skip to content

Instantly share code, notes, and snippets.

View pH200's full-sized avatar

pH pH200

  • Cytisan Software
  • Taipei, Taiwan
View GitHub Profile
@jaames
jaames / astro.config.mjs
Last active October 5, 2024 17:55
Injecting global SCSS variables in Astro (https://astro.build), using additionalData and a path alias
// note for typescript users: you will need to install node.js types into your project with `npm i -D @types/node`
import { fileURLToPath } from 'url';
import path, { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default {
// all the usual config goes here...