{"id":21315473,"url":"https://github.com/bingxuelover/node-auto-refresh","last_synced_at":"2026-04-13T03:34:25.927Z","repository":{"id":126605060,"uuid":"96514851","full_name":"bingxuelover/node-auto-refresh","owner":"bingxuelover","description":"前端使用的自动刷新本地服务器","archived":false,"fork":false,"pushed_at":"2017-07-11T01:42:32.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T03:35:30.634Z","etag":null,"topics":["browser-sync","less","nodejs","npm","onchange","refresh","uglifyjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bingxuelover.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-07T08:03:07.000Z","updated_at":"2017-08-11T05:58:47.000Z","dependencies_parsed_at":"2023-06-17T10:00:34.728Z","dependency_job_id":null,"html_url":"https://github.com/bingxuelover/node-auto-refresh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bingxuelover/node-auto-refresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingxuelover%2Fnode-auto-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingxuelover%2Fnode-auto-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingxuelover%2Fnode-auto-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingxuelover%2Fnode-auto-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bingxuelover","download_url":"https://codeload.github.com/bingxuelover/node-auto-refresh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingxuelover%2Fnode-auto-refresh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31739050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T03:27:07.512Z","status":"ssl_error","status_checked_at":"2026-04-13T03:26:53.610Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["browser-sync","less","nodejs","npm","onchange","refresh","uglifyjs"],"created_at":"2024-11-21T18:20:10.120Z","updated_at":"2026-04-13T03:34:25.898Z","avatar_url":"https://github.com/bingxuelover.png","language":"JavaScript","readme":"#说明\n\n作为前端开发做静态页面的时候，需要不停的刷新页面，这个项目就是为了在修改的时候自动刷新页面，自动将less文件生成css文件。\n有些情况下，由于ajax书写方式的原因，server方式启动的3000服务不能正常显示，所以start方式启动的3000手动刷新服务器作为备选。\n\n#使用方法\n\n##安装 npm install\n\n##运行 npm start\n启动 http://localhost:3000/ 端口的服务器，运行的是public文件集里的静态页面\n\n##运行 npm run server\n启动 http://localhost:3000/ 端口的服务器，运行的是public文件集里的静态页面；\n1. public 文件夹里的文件修改，包括html、css、js都会自动刷新页面\n\n##运行 npm run less\nless文件夹里的less文件修改保存后，会自动生成压缩后的同名css文件到css文件夹中\n\n##运行 npm run build\n启动 http://localhost:3000/ 端口的服务器，运行的是public文件集里的静态页面；\n1. public 文件夹里的文件修改，包括html、css、js都会自动刷新页面\n2. less文件夹里的less文件修改保存后，会自动生成压缩后的同名css文件到css文件夹中\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingxuelover%2Fnode-auto-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbingxuelover%2Fnode-auto-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingxuelover%2Fnode-auto-refresh/lists"}