title: Vite: Building a SASS file as it is written
body: <p>I am building a library using Vite/Vue3/Quasar and I would like to export a <code>quasar-variables.sass</code> file as it is written without it being compiled or anything. Just straight SASS file that I can import to my other projects.</p>
  <p>Is this possible with Vite?</p>
  <p>Here is my <code>vite.config.js</code>:</p>
  <pre><code>
  import { resolve } from 'path';
  import { defineConfig } from 'vite';
  import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
  import eslintPlugin from 'vite-plugin-eslint';
  import vue from '@vitejs/plugin-vue';
  
  // https://vitejs.dev/config/
  export default defineConfig({
      build: {
          lib: {
              entry: resolve(__dirname, 'src/index.js'),
              name: 'AvvinueClowder',
              fileName: (format) =&gt; `avvinue-clowder.${format}.js`,
          },
          rollupOptions: {
              external: ['vue'],
              output: {
                  globals: {
                      vue: 'Vue',
                  },
              },
          },
      },
      plugins: [
          vue({
              template: { transformAssetUrls },
          }),
          eslintPlugin(),
          quasar({
              sassVariables: 'src/style/_quasar-variables.sass',
          }),
      ],
      resolve: {
          alias: {
              '@': resolve(__dirname, './src'),
          },
      },
  });
  
  </code></pre>
  <p>And part of my <code>package.json</code>:</p>
  <pre><code>    &quot;version&quot;: &quot;2.0.9&quot;,
      &quot;files&quot;: [
          &quot;dist&quot;
      ],
      &quot;main&quot;: &quot;./dist/avvinue-clowder.umd.js&quot;,
      &quot;module&quot;: &quot;./dist/avvinue-clowder.es.js&quot;,
      &quot;exports&quot;: {
          &quot;.&quot;: {
              &quot;import&quot;: &quot;./dist/avvinue-clowder.es.js&quot;,
              &quot;require&quot;: &quot;./dist/avvinue-clowder.umd.js&quot;
          }
      },
      &quot;scripts&quot;: {
          &quot;dev&quot;: &quot;vite&quot;,
          &quot;build&quot;: &quot;vite build&quot;,
          &quot;preview&quot;: &quot;vite preview&quot;
      },
  
  </code></pre>
  <p>And this is what gets spit out in the <code>dist</code> folder:
  <a href="https://i.stack.imgur.com/3miWM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3miWM.png" alt="enter image description here" /></a></p>
  <p>Right now everything gets converted to simple CSS and the variables seem to get lost, which is forcing me to declare multiple variable files in multiple repositories, instead of just importing it from my NPM library I'm creating.</p>
  <p>Thank you!</p>