-
Notifications
You must be signed in to change notification settings - Fork 117
Unwanted styles dependency resolution #447
Comments
This is being done automatically by the There isn't a way to disable currently, but since it's just a plugin it shouldn't be hard to add some sort of public API to configure this. |
So currently, it is impossible to build 2 separate CSS files If you want to specify dependencies in Well, that sux :) |
Why exactly wouldn't you want that to happen? It seems like pretty reasonable behavior to me, but I don't really understand what your use-case could be. |
Any use case where you need more than one stylesheet. For example:
|
So, do you need the |
I'm not creating a component. I'm creating a final project/website whose front-end assets should be build with duo, and having dependency versions defined in manifest instead of code is definitely more maintainable. Also dependency pinning (shrinkwrap). |
Oh, then I would just encourage you to exclude things like Duo begins with "entry files" (the ones you pass to the duo builder) and ascertains any dependencies via static analysis. (not unlike browserify) Thus, unlike component, you don't need to specify every file (or any file for that matter) in a |
Oh, true. I've actually run into this when developing a component and trying to build Also, how would you build component styles, when styles array has multiple files inside it? They basically need to be concatenated and than build, but I'm curious if it can be done purely with Duo API, without bringing in other tools. Something like |
Project: https://gist.github.com/anonymous/807ee9ea89692a000e6d
To test:
The expected output would be:
but instead, we get the remaining styles from
component.json:styles
array appended at the end, resulting in:And while I'm at it, how would you build styles for this component with Duo, assuming there is no
test.css
, just styles split into separate files?Is there some shorthand like
new Duo(__dirname).entry('styles')
that would build styles fromcomponent.json
located at__dirname
? I haven't found anything in docs regarding this.The text was updated successfully, but these errors were encountered: