glimmerjs / glimmer-application-pipeline

Tooling for developing Glimmer standalone apps with ember-cli
MIT License
21 stars 31 forks source link

Unable to process and output multiple scss/css files #135

Open john-griffin opened 6 years ago

john-griffin commented 6 years ago

When using ember-cli-sass in regular ember projects it's possible to output multiple css files by specifying something like

var app = new EmberApp({
  outputPaths: {
    app: {
      css: {
        'app': '/assets/application-name.css',
        'themes/alpha': '/assets/themes/alpha.css'
      }
    }
  }
});

as seen here https://github.com/aexmachina/ember-cli-sass#processing-multiple-files.

When trying the same thing in glimmer the following error occurs.

Build Error (SassCompiler)

Path must be a string. Received { app: '/assets/application-name.css',
  'themes/alpha': '/assets/themes/alpha.css' }

Is this due to the typing here? https://github.com/glimmerjs/glimmer-application-pipeline/blob/7ee39535d7339300d10b9bf6b0c5aa45be8a9d95/lib/interfaces.ts#L68 Should it be updated to allow for this config? Thanks!