-
Notifications
You must be signed in to change notification settings - Fork 152
Update concat strategy; Fix sourcemap support in Ember v2 pipeline #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Use broccoli-concat to merge files together, which can better handle sourcemaps that are present. - Update BaseImporter to ensure that sourcemaps are included in parsed CSS content from compiled css files.
- Use raw Compiled CSS contents in the build pipeline. Trying to use something else causes misaligment with embedded sourcemap char data. - Remove some sourcemap logic from the prev. commit that's no longer necessary.
- Useful for apps that need to set a particular order of concatenation for CSS files in the final build artifact (for stuff such as, for instance, reset stylesheets, which are lower priority than CSS Blocks.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean we won't need the the import 'css-blocks'
within the app.(s)css file?
Yes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great stuff. I'm glad you got this working, it's super important to the developer experience. I think it needs a few small changes and then it will be ready to merge.
Co-authored-by: Chris Eppstein <[email protected]>
Co-authored-by: Chris Eppstein <[email protected]>
- Use user settings to construct blocks file path. - More granular options merging to build broccoli-concat settings, to ensure sourceMapConfig is accurate. - Use false instead of "SKIP" to disable concat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment. Approved to merge once that's addressed.
Default to css-blocks.css if not declared. Unifies hardcoded defaults from multiple locations.
Fixes #476. Fixes #485.