{"id":16594138,"url":"https://github.com/jsdf/hot-site","last_synced_at":"2025-06-13T13:33:02.202Z","repository":{"id":66018896,"uuid":"46642321","full_name":"jsdf/hot-site","owner":"jsdf","description":"convention-over-configuration webpack dev server with hot module replacement and less boilerplate","archived":false,"fork":false,"pushed_at":"2015-11-22T02:02:07.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T06:40:48.876Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsdf.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}},"created_at":"2015-11-22T01:55:46.000Z","updated_at":"2015-11-22T01:56:10.000Z","dependencies_parsed_at":"2023-02-19T21:40:22.092Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/hot-site","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/jsdf%2Fhot-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fhot-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fhot-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fhot-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/hot-site/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242251104,"owners_count":20096933,"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-10-11T23:45:16.064Z","updated_at":"2025-03-06T17:21:56.857Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hot-site\na convention-over-configuration webpack dev server with hot module replacement\n\n💡spin up new projects faster and with less boilerplate\n\n## usage\n\n```\nnpm init\nnpm install --save hot-site\n```\n\ndirectory structure:\n```\nyour_project/\n├── index.html\n├── package.json\n├── src\n│   └── index.js\n└── webpack.config.js\n```\n\n`webpack.config.js`:\n```js\nvar makeHotSiteConfig = require('hot-site/makeConfig');\n\nmodule.exports = makeHotSiteConfig({\n  // your webpack config here\n});\n```\n\n`package.json`:\n```json\n{\n  \"scripts\": {\n    \"start\": \"hot-site\"\n  }\n} \n```\n\n`index.html`\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003e\u003c/title\u003e\n    \u003cscript src=\"/static/index.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n```\nnpm start\nopen http://localhost:8080/\n```\n\n### opinionated setup: babel, css modules, react-transform-hmr\n\n```\nnpm install --save babel-core@5.x babel-loader@5.x babel-plugin-react-transform react-transform-hmr style-loader css-loader\n```\n\n`webpack.config.js`:\n```js\nvar makeHotSiteConfig = require('hot-site/makeConfig');\n\nmodule.exports = makeHotSiteConfig({\n  devtool: 'cheap-eval-sourcemap',\n  module: {\n    loaders: [\n      {\n        test: /\\.css$/,\n        loader: \"style-loader!css-loader?modules\",\n      },\n      {\n        test: /\\.js$/,\n        loaders: ['babel'],\n        exclude: 'node_modules',\n      }\n    ],\n  },\n});\n```\n\n`.babelrc`:\n```js\n{\n  \"stage\": 0,\n  \"env\": {\n    \"development\": {\n      \"plugins\": [\"react-transform\"],\n      \"extra\": {\n        \"react-transform\": {\n          \"transforms\": [{\n            \"transform\": \"react-transform-hmr\",\n            \"imports\": [\"react\"],\n            \"locals\": [\"module\"]\n          }]\n        }\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fhot-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Fhot-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fhot-site/lists"}