Skip to content

Instantly share code, notes, and snippets.

@lmartim
Last active October 1, 2021 03:21
Show Gist options
  • Save lmartim/64047b81bd971c6d2ede26ef1a82d607 to your computer and use it in GitHub Desktop.
Save lmartim/64047b81bd971c6d2ede26ef1a82d607 to your computer and use it in GitHub Desktop.
Vite config file on new project
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import "your-npm-package-name/tokens/_variables.scss";
@import "your-npm-package-name/styles/styles.scss";
`
}
}
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment