Skip to content

Instantly share code, notes, and snippets.

@lmartim
Last active September 28, 2021 03:06
Show Gist options
  • Save lmartim/bb92faa5429e029dd6c60cbd5bf9a4ee to your computer and use it in GitHub Desktop.
Save lmartim/bb92faa5429e029dd6c60cbd5bf9a4ee to your computer and use it in GitHub Desktop.
Adding token's file to Vite.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import './tokens/build/variables';
`
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment