Create A CSS File
Create a plain CSS file and write any code you need; it will apply for each page in website.
/fragment/css/constant/test.css
div{color: red}
copy
Configuring CSS Constant Fragment
In ref add a css object; inside it create a constant array whose items
are the absolute paths of the CSS constant fragments to apply once on reload, route or call cleanup(); function.
export const ref = {
css:{
constant:["/fragment/css/constant/test.css"]
}
}copy
📜 Note
Always use absolute path