rollup-plugin-styles icon indicating copy to clipboard operation
rollup-plugin-styles copied to clipboard

Scss @charset failing

Open Hideman85 opened this issue 3 years ago • 0 comments

Hi,

I'm having troubles with scss, I wanted to try out your plugins instead of separate one but it fails right away.

[!] Error: Unexpected character '@' (Note that you need plugins to import files that are not JavaScript)
src/styles/App.scss (1:0)
1: @charset "UTF-8";
   ^

Config

    styles({
      mode: 'emit',
      less: {
        javascriptEnabled: true,
        modifyVars: {
          '@border-radius-base': '0.25rem'
        }
      },
      sass: {
        impl: 'sass'
      }
    }),

Related issue https://github.com/Anidetrix/rollup-plugin-styles/issues/141 but still unanswered :(

Hideman85 avatar Feb 23 '22 11:02 Hideman85