Comments (3)
+1
from grunt-stripmq.
Actually, 0\0
seems to work, the problem is when I pass this through sass I end up with 0 \0
, which fails:
TypeError: Cannot read property '1' of null
at /Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:105:36
at Array.map (native)
at /Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:103:42
at Array.map (native)
at parseQuery (/Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:88:34)
at Object.matchQuery [as match] (/Users/jvennix/Projects/grunt-stripmq/node_modules/css-mediaquery/index.js:21:12)
at /Users/jvennix/Projects/grunt-stripmq/tasks/lib/stripmq.js:11:28
at Array.reduce (native)
at stripMediaQueries (/Users/jvennix/Projects/grunt-stripmq/tasks/lib/stripmq.js:9:48)
at StripMQ (/Users/jvennix/Projects/grunt-stripmq/tasks/lib/stripmq.js:43:12)
I will investigate to see if there's a way to prevent this behavior in sass. I don't see the point of supporting a malformed hack for IE here.
from grunt-stripmq.
+1 for this issue with sass compiling causing stripmq
to error.
In the meantime, I found a workaround using a slightly different IE Media Query hack which stripmq
doesn't have such a problem with:
@media screen\0 {
....
}
Props to : http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/media-tests/ for the media query hacks.
from grunt-stripmq.
Related Issues (20)
- Make it clearer what width and height options do HOT 9
- Getting "path must be a string" error HOT 1
- Missing comma in Grunt Task example code
- Media queries with `only` should be ignored for IE8 HOT 2
- Release new version on npm HOT 1
- possibility to run it over a whole css folder? HOT 1
- Generate a diff File
- Compressed/expanded output HOT 2
- Include multiple types HOT 2
- StripMQ to separate package HOT 5
- issue: do not merge CSS rules! HOT 4
- why is everything in @media print ignored and not rendered in the IE8 css file? HOT 1
- Concat of files over a folder does not work HOT 1
- Multiple values in width option
- "opacity" IE 8 issue HOT 1
- can not get stripmq to work for multiple src dest folder
- Advanced optimisations should be disabled for CleanCss component HOT 1
- imports getting stripped out HOT 1
- "Stripping media queries failed." - Aid in debugging HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-stripmq.