base commit

This commit is contained in:
@kirill.komarov
2026-05-04 12:34:01 +05:00
parent 6885e39017
commit ebe1ede25c
100 changed files with 7688 additions and 9 deletions
+36
View File
@@ -0,0 +1,36 @@
import { defineConfig } from 'vite'
import path from 'path'
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
function figmaAssetResolver() {
return {
name: 'figma-asset-resolver',
resolveId(id) {
if (id.startsWith('figma:asset/')) {
const filename = id.replace('figma:asset/', '')
return path.resolve(__dirname, 'src/assets', filename)
}
},
}
}
export default defineConfig({
plugins: [
figmaAssetResolver(),
// The React and Tailwind plugins are both required for Make, even if
// Tailwind is not being actively used do not remove them
react(),
tailwindcss(),
],
resolve: {
alias: {
// Alias @ to the src directory
'@': path.resolve(__dirname, './src'),
},
},
// File types to support raw imports. Never add .css, .tsx, or .ts files to this.
assetsInclude: ['**/*.svg', '**/*.csv'],
})