Closed lancedikson closed 7 years ago
Sure, as long as that is set by default.
@knownasilya, I have a good example of that practice — ember-power-select, but they do it with adding some complexity to addon's release process. They just have some ember release
command that precompiles all sass to vendor's CSS, creates a new minor version of the addon and push it, I guess.
But, it's cool that this way has backward compatibility and doesn't push people to install Sass to have any styles.
What do you think? Is it comfortable to have a complicated way to release?
We already do that, see https://github.com/knownasilya/ember-cli-toggle/blob/master/index.js#L36
But base.css
includes anyway without any condition, right?
Yeah, we could add a property to exclude it, e.g. excludeBaseStyles: true
.
Sounds good 👍
This is a thing in v3.0.0.
Looks like there are some cases when you want a customized toggle and don't need those default styles. Is it suitable to make them importable optionally like add
@import 'ember-cli-toggle'
to theapp.css
?