adopted-ember-addons / adopted-ember-addons/ember-cli-sass

Exclusion Doesn't Work in passthrough

オープン
#196 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
273
フォーク
90
PR マージ指標
30日以内にマージされた PR はありません

説明

I've tried everything I can to get the plugin to NOT add in a certain subfolder of my project to the concat'd stylesheet output, but no no avail. Here's my config from `ember-cli-build`:

```
sassOptions: {
includePaths: [],
onlyIncluded: true,
passthrough: {
include: ['app/styles/**/*','node_modules/**/**'],
exclude: ['app/sfcs/*'],
annotation: 'Funnel (styles, no SFC styles)'
}
},
```

(The `node_modules` inclusion above is an attempt to replicate the default tree, because these options cause my `app.scss` to fail on ` @import "ember-cli-bootstrap-4/bootstrap";` Eventually, I got bootstrap working again with `@import "../../node_modules/bootstrap/scss/bootstrap";` but I digress.)

I thought that by setting `includePaths:[]` and `onlyInclude: true` would cause the plugin to bypass generating it's own inclusion tree (which is what the source seems to say), and then I could give the `Funnel` my own opts. According to docs, `exclude` takes precedence over `include` - but even with these options set, I **still** see the styles in `app/sfcs/` present in the output.

Any advice on how to just exclude one folder from the compiled output...?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。