mariocasciaro / gulp-concat-css

Concatenates css files, bubbling up import statements (as per the standard), and optionally rebasing urls and inlining local import statements.
MIT License
78 stars 19 forks source link

New CSS @apply rule causes crash #37

Open nektro opened 8 years ago

nektro commented 8 years ago

The new CSS @apply rule decribed here causes a crash.

events.js:141
      throw er; // Unhandled 'error' event
      ^
 Error: C:\GitHubWeb\CssMaterial\src\components\button.css:17:5: missing '}'
    at error (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:62:15)
    at declarations (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:259:26)
    at rule (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:560:21)
    at rules (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:117:70)
    at stylesheet (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:81:21)
    at module.exports (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\node_modules\css\lib\parse\index.js:564:20)
    at rework (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\rework\index.js:27:21)
    at DestroyableTransform._transform (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\index.js:82:22)
    at DestroyableTransform.Transform._read (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (C:\GitHubWeb\CssMaterial\node_modules\gulp-concat-css\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12)

The referenced file can be found here.

Although not technically standard CSS, it has already shipped in Chrome and Opera.

arbaev commented 6 years ago

The same problem with @media and so on.