Skip to content

Support for multiple input-output files#73

Open
noelklein wants to merge 1 commit into
patternpack:developfrom
noelklein:mgo/multiple-output-files
Open

Support for multiple input-output files#73
noelklein wants to merge 1 commit into
patternpack:developfrom
noelklein:mgo/multiple-output-files

Conversation

@noelklein

Copy link
Copy Markdown

Added support for multiple input/output files. With this change we can define a list of files instead of just one file that everything gets compiled to.

patternpack: {
        css: {
          fileNames: ["patterns", "someFolder/patterns"]
        },
...

@marcelosomers

Copy link
Copy Markdown
Member

@noelklein Thanks for the PR!

I'm curious if a better approach to this is to just pass in a directory to the Sass src files and let Sass do its magic (i.e., knowing that anything prefixed with _ is a partial and shouldn't compile a CSS file). A few concerns with this approach:

  • We'd need to research if LESS supports this same logic by default (I don't think it does)
  • I believe PostCSS is also pointing to specific files, so we need to address how parses the output files

Let's leave this open, but I want to research these alternate options because I do think support for more than one Sass/LESS file could be handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants