title: How to create component with scss files in library angular
body: <p>I created a scss app and associated a library.
  I want to create components with .scss files inside this library. But when I create a component inside the library, angular assigns it a css file automatically.</p>
  <p>I created the application (named vega-libraries) with the scss option but not the library (polaris-common)</p>
  <p>Here is a screenshot of the project with the tree view,I tried to change the css file of <code>totoComponent</code> in <code>toto.scss</code> as you can see in the screenshot.</p>
  <p><a href="https://i.stack.imgur.com/wF2Tm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wF2Tm.png" alt="enter image description here" /></a></p>
  <p>But when I do that, it generates an error of this type:</p>
  <blockquote>
  <p>Error: The loader &quot;C:/Users/........toto/toto.component.css&quot; didn't
  return a string.</p>
  </blockquote>
  <p>How can I create components in my library with .scss files that work ?</p>
  <p>Thank you for your help</p>
  <p>EDIT :</p>
  <pre><code> &quot;polaris-common&quot;: {
        &quot;projectType&quot;: &quot;library&quot;,
        &quot;root&quot;: &quot;projects/polaris-common&quot;,
        &quot;sourceRoot&quot;: &quot;projects/polaris-common/src&quot;,
        &quot;prefix&quot;: &quot;lib&quot;,
        &quot;architect&quot;: {
          &quot;build&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:ng-packagr&quot;,
            &quot;options&quot;: {
              &quot;project&quot;: &quot;projects/polaris-common/ng-package.json&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;tsConfig&quot;: &quot;projects/polaris-common/tsconfig.lib.prod.json&quot;
              },
              &quot;development&quot;: {
                &quot;tsConfig&quot;: &quot;projects/polaris-common/tsconfig.lib.json&quot;
              }
            },
            &quot;defaultConfiguration&quot;: &quot;production&quot;
          },
          &quot;test&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:karma&quot;,
            &quot;options&quot;: {
              &quot;main&quot;: &quot;projects/polaris-common/src/test.ts&quot;,
              &quot;tsConfig&quot;: &quot;projects/polaris-common/tsconfig.spec.json&quot;,
              &quot;karmaConfig&quot;: &quot;projects/polaris-common/karma.conf.js&quot;
            }
          }
        }
      }
    },
    &quot;defaultProject&quot;: &quot;vega-libraries&quot;
  }
  </code></pre>