Adds a new option (importStyles) that allows components to import style files as ES6 modules (import style from './some-component.css';).
The styles are processed through Autoprefixer using the targets of the hosting app.
This allows to write CSS in CSS and follows the pattern that can be found in React or Angular for importing styles.
For now, the Broccoli plugin that transforms styles into scripts is included inside this addon (lib/broccoli-style-export.js), but we want to move that code into a separate Broccoli plugin in the future.
Adds a new option (
importStyles
) that allows components to import style files as ES6 modules (import style from './some-component.css';
). The styles are processed through Autoprefixer using the targets of the hosting app.This allows to write CSS in CSS and follows the pattern that can be found in React or Angular for importing styles.
For now, the Broccoli plugin that transforms styles into scripts is included inside this addon (
lib/broccoli-style-export.js
), but we want to move that code into a separate Broccoli plugin in the future.Note: #5 should be merged first.