Fixes #351 - remote `@import`s after content.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 18 Jan 2015 19:06:24 +0000 (19:06 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 18 Jan 2015 19:13:17 +0000 (19:13 +0000)
commit01eff2b816c4e9a70e399f8d2610567baf11ee86
treec15115eb72b024b8f5f50b12fe4f92e5d070e2f3
parentd7fd994ff124ff92909b3ca6632d95e014106a40
Fixes #351 - remote `@import`s after content.

Changes behavior of importing remote styles after other content,
when minifying without a callback (requirement for remote `@import`s).

So far such `@import`s were kept intact and no warnings were reported.
From now on they are removed and a warning is raised, one per `@import`.

It is due to a fact that all browsers ignore `@import`s when they appear
not at the beginning of a stylesheet.

In case if a remote `@import` appears after other remote or local ones
it won't be dropped as it may be resolved at runtime (in the browser).
History.md
lib/imports/inliner.js
test/fixtures/partials/remote.css [new file with mode: 0644]
test/integration-test.js
test/module-test.js
test/protocol-imports-test.js