Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Abstract out language handling #113

Open
markfinger opened this issue Jun 19, 2016 · 0 comments
Open

Abstract out language handling #113

markfinger opened this issue Jun 19, 2016 · 0 comments

Comments

@markfinger
Copy link
Owner

markfinger commented Jun 19, 2016

Currently handling JS, JSON, CSS, and binary files all via the one epic pipeline definition.

Should break them up and try to find a simple and flexible way of resolving the types from the path or extension. Webpack's config mess should be avoided. Might be worth considering any benefits that can be drawn out of Ninja's concept of a low-level build description that is generated by code.

Need to consider how to handle compilation targets (eg: scss -> css). In a couple of projects I've had a pre-compiler that does some initial transformation and then indicates to the process that its output should be considered CSS. Does tend to get a bit messy when having to manually deactivate the postcss stuff.

Might be worth considering a fundamental assumption that all files may go through multiple transforms. Could get messy though, might end up with the same problems as browserify/webpack where they have elected for a low-level textual primitive that requires constant re-parsing for each transform.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant