Within my project directory, there is a simple SCSS file that I need to access its content during the compilation process in order to transform it in vite.config.js. However, I am unsure of how to retrieve its content. I have successfully obtained the content using
import test from "./src/extensions/sites/noscript/test.css";
console.log(test);
in App.vue, but this method does not work in vite.config.js (which works with webpack). Are there alternative ways to retrieve the content of a file? When debugging, 'test == {}' appears in vite.config.js, while it functions correctly in App.vue.