TrySound / postcss-easy-import

PostCSS plugin to inline @import rules content with extra features
MIT License
200 stars 25 forks source link

Is it possible to control sorting of hyphenated filenames? #29

Open gerardo-rodriguez opened 5 years ago

gerardo-rodriguez commented 5 years ago

Before we started using postcss-easy-import, stylesheets were included manually, like so:

@import "./components/input.css";
@import "./components/input-extra.css";
@import "./components/input-group.css";

Now that we are using postcss-easy-import we don't have to do that, we can do:

@import "./components/*";

The problem is that it seems to be importing stylesheets without hyphenation last. So the above will actually end up being equivalent to:

@import "./components/input-extra.css";
@import "./components/input-group.css";
@import "./components/input.css";

Might there anyway to control the sort order? Ideally some sort of natural sort would take into effect. Thanks for your time!