question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with @include

See original GitHub issue

I get the error ‘Broken @import declaration of …’ when I try to minify CSS containing an import statement like the following:

 @import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,700,300&subset=latin,cyrillic); 

It looks like it was introduced between version 2.0.8 and 2.1.0.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:22

github_iconTop GitHub Comments

13reactions
Deviadcommented, Apr 5, 2016

Hello, I am using gulp and in there I added .pipe(minifycss({ keepSpecialComments: 1, processImport: false }))

as a temporary workaround.

gulp.task('styles', function() { return sass('sass/main.scss', { style: 'expanded' }) .pipe(gulp.dest('css')) .pipe(rename({suffix: '.min'})) .pipe(minifycss({ keepSpecialComments: 1, processImport: false })) .pipe(gulp.dest('css')); });

Hope this helps.

Regards, Davide

0reactions
keithl8041commented, Oct 1, 2016

I run into this issue if I am still running my local node express server (with livereload) when running the gulp task. Stopping the server fixes the issue. I guess it’s some kind of locking or filesystem activity which makes it time out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

path issue with include in PHP - Stack Overflow
I have an index.php in root and a 'includes' folder containing header.php and footer.php.I included header and footer in index.php and it works ......
Read more >
Issues · include-what-you-use/include-what-you-use - GitHub
A tool for use with clang to analyze #includes in C and C++ source files - Issues · include-what-you-use/include-what-you-use.
Read more >
Issue - How to solve, php include problem? - Plesk Forum
I've created a new web hosting to move from another hosting a website with all contents, but I have a issue with the...
Read more >
Problems with PHP 'include' - Forums - CSS-Tricks
I am trying to include a php file into a div using the following example. <?php include 'http://www.yoursite.com/path/to/file.php'; ?>.
Read more >
Issue with include files - Aspose.Cells Product Family
I am currently evaluating Aspose.Cells for C++ for usage in my company. I am having issues with the include files, specifically the unicode ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found