Docs
Getting started
Styling
Styling
Since exta is built on top of Vite, you can style your app by importing style files or registering them in the index.html
file.
Typescript
import "../styles.scss";
WARNING
For files that require separate compilation, such as scss
, you need to
install an additional package (e.g., node-sass
).
#Stylesheets on the server
Files for styling (.css
, .scss
, etc.) cannot be loaded on the server. Therefore, exta excludes all files recognized as style files from the server.
Typescript
// ...
export default defineConfig({
plugins: [
// ...
exta({
compileOptions: {
assetsExtensions: [".customcss"],
},
}),
],
});