Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 471 Bytes

import-aliases.md

File metadata and controls

26 lines (17 loc) · 471 Bytes

Import Aliases

We've set up import aliases to simplify file referencing:

  • @/ represents the ./src/ folder
  • #/ represents the ./generated/ folder

Usage Examples

In TypeScript/JavaScript:

import { Svgs } from '#/svg-imports'
import { print } from '@/utils/print'

These imports resolve to:

  • ./generated/svg-imports.ts
  • ./src/utils/print

In SCSS:

src: url('~@/assets/fonts/ShopifySans/ShopifySans-Regular.woff2');