egoist / egoist/rollup-plugin-postcss

Plugins not evaluating locally imported style sheets

Open
#275 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
689
Forks
210
PR merge metrics
No merged PRs in 30d

Description

I have the following `postcss.config.js`

```js
module.exports = {
plugins: [
require('postcss-import')(),
require('tailwindcss'),
require('autoprefixer'),
]
};
```

And the following `app.css`:

```css
/* Import Tailwind as Global Utils */

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import "./custom.css";
```

And `custom.css`:

```css
.hero {
background-image: url("../images/hero.jpg");
}
```

And the following `rollup` config:

```js
postcss({
extract: 'public/dist/app.css',
plugins: [
url({
url: 'inline'
})
]
})
```

Now if I move the `.hero` class into my `app.css` it works as expected and the background is inlined, however while it is in `custom.css` the code is not evaluated.

Cheers.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.