bulma
bulma copied to clipboard
@charset "utf-8"
This is about Bulma.
Overview of the problem
This is a Sass issue: I'm using version [x.x.x]
Description
I'm using the sass version and vite as a bundler. Whenever I am running a build, I get this warning:
warnings when minifying css: ▲ [WARNING] "@charset" must be the first rule in the file
<stdin>:3:0:
3 │ @charset "UTF-8";
╵ ~~~~~~~~
This rule cannot come before a "@charset" rule
<stdin>:2:0:
2 │ @import url("https://rsms.me/inter/inter.css");
╵ ^
Bundler obviously puts charset rule before all other imports, I don't understand why each bulma sass file have to have this charset declaration @charset "utf-8"? Is this really necessary?
Hi, after some research, it is necessary and required to input the charset declaration first in a sass file.