BBVAEngineering / ember-cli-webcomponents-bundler

Bundles Web Components using ES6 modules
https://bbvaengineering.github.io/ember-cli-webcomponents-bundler/
MIT License
3 stars 0 forks source link

feat: allow to import styles from components #6

Closed kcmr closed 5 years ago

kcmr commented 5 years ago

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.

adrigzr commented 5 years ago

:tada: This PR is included in version 1.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: