{"id":19304102,"url":"https://github.com/foolishchow/gulp-no-css-media","last_synced_at":"2026-05-16T09:33:18.615Z","repository":{"id":57258361,"uuid":"85276021","full_name":"foolishchow/gulp-no-css-media","owner":"foolishchow","description":"remove unused css media condition ","archived":false,"fork":false,"pushed_at":"2017-03-17T06:13:53.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T01:02:28.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foolishchow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-17T05:56:10.000Z","updated_at":"2017-03-17T06:12:49.000Z","dependencies_parsed_at":"2022-08-25T21:23:44.787Z","dependency_job_id":null,"html_url":"https://github.com/foolishchow/gulp-no-css-media","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Fgulp-no-css-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Fgulp-no-css-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Fgulp-no-css-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foolishchow%2Fgulp-no-css-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foolishchow","download_url":"https://codeload.github.com/foolishchow/gulp-no-css-media/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240404754,"owners_count":19796064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:28:42.802Z","updated_at":"2026-05-16T09:33:13.595Z","avatar_url":"https://github.com/foolishchow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-no-css-media\n\nremove unused css media condition \n\n\u003e purpose   \n\nSometimes I use some frameworks contains responsive media .    \nbut I don't need to use in my production enviroment.   \nSo before publish , I prefer to remove them from my project .    \nso there is this module.\n\n\u003e useage\n\n```javascript\nvar gulp = require('gulp'),\n    noCssMedia = require('gulp-no-css-media');\ngulp.task('bootstrap',function(){\n    var leftOpt = ['(min-width: 1200px)','(min-width: 768px)'];\n    //编译bootstrap样式并去除响应式代码，由于会影响sourceMap，所以本地调试时建议不去除@Media\n    gulp.src('./src/static/bootstrap.css')\n        .pipe(noCssMedia(leftOpt))\n        .pipe(gulp.dest('./src/static/style/'));\n});\n```\nit will remove all the `@media` condition in your file.    \nso you can config those medias you want to left.   \njust config then to an Array.   \n```javascript\nvar leftOpt = ['(min-width: 1200px)','(min-width: 768px)'];\nnoCssMedia(leftOpt)\n```\n\n\nhave fun","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoolishchow%2Fgulp-no-css-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoolishchow%2Fgulp-no-css-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoolishchow%2Fgulp-no-css-media/lists"}