bulma icon indicating copy to clipboard operation
bulma copied to clipboard

@charset "utf-8"

Open rvision opened this issue 3 years ago • 1 comments

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?

rvision avatar Feb 21 '22 16:02 rvision

Hi, after some research, it is necessary and required to input the charset declaration first in a sass file.

aiethics95 avatar Mar 23 '22 03:03 aiethics95