Comments (6)
Further looking into it, it does work, the config has to be
{
"options": ["setClasses"],
"tests": [
[
"cssgrid",
"cssgridlegacy"
]
],
}
though. Can you confirm @markkes ?
from gulp-modernizr.
hi @daronjones not sure what you mean: do you really want to have a build based on an old version (2.X9 of modernizr? because this plugin here will always build with the latest Modernizr version (which is currently 3.6). I have no plans whatsoever on supporting building old modernirz for obvious security and matainance reasons.
from gulp-modernizr.
@rejas It might be that @daronjones has the same issue as i have.
I cant seem to get the grid support to work using the "tests" option. It is working via the feature detection scanning the JS files. But when i add it to the gulp function via the "tests" option it ignores it. I just want to add it as an extra test running and adding it to the modenizr build. Can you reproduce this issue?
from gulp-modernizr.
I can but a) it seems to only concern tests that have an array of properties (like cssgrid, but not something like svg) and b) is rooted in customizr (which I thought was fixed already via Modernizr/customizr#44)
from gulp-modernizr.
@rejas Works, thanks for the quick reply and solution!
from gulp-modernizr.
@markkes good to hear that. updated the readme with an example on how to include tests like that for grids.
from gulp-modernizr.
Related Issues (20)
- includeTests rather than excludeTests? HOT 1
- Scanning css files HOT 3
- Config file? HOT 4
- Task "finishes" before it's actually done HOT 4
- npm install fails in postinstall.js HOT 4
- Any plans to release a "stable" version? HOT 4
- Any of of 'requirejs' breaks build. HOT 4
- Use Modernizr without gulp.src HOT 6
- "crawl: false" being ignored HOT 5
- Unable to install on windows 10 HOT 3
- Sometimes it works, sometimes it doesn't HOT 2
- adding customTests leads to ENOENT: no such file or directory HOT 3
- Template literals
- Gulp modernizr doesn't add css classes
- yarn warnings HOT 1
- touchevents + ES6 HOT 3
- Error when using gulp#4.0 HOT 5
- An in-range update of eslint is breaking the build 🚨 HOT 1
- An in-range update of mocha is breaking the build 🚨 HOT 1
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 gulp-modernizr.