Static GitHub Issues

[295] Global SCSS loading

prev: Data function called 2 times when I have more then three levels of route
next: Allow configuring a destination path for build output

Hi !

I tried to add a global sass file in my project by doing:

// file: nuxt.config.js 
css: [
    'element-ui/lib/theme-default/index.css',
    { src: '~plugins/themes/portal.scss', lang: 'sass'}
  ],

but I'm getting the following error:

ERROR in ./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-76ea6e06!./~/sass-loader/lib/loader.js?indentedSyntax!./plugins/themes/portal.scss
Module build failed: 
html, .bold, .regular, body, h1, h2, h3, h4, h5, h6, input, li, p, textarea, div {
Invalid CSS after "...textarea, div {": expected "}", was "{"

Loading sass files from my vue components works fine.

Any idea how to fix that ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c247">#c247</a>)</em></sub></div>