{"id":16553140,"url":"https://github.com/white-gecko/mwe-self-contained-html","last_synced_at":"2026-04-10T01:48:00.696Z","repository":{"id":142152519,"uuid":"460860199","full_name":"white-gecko/mwe-self-contained-html","owner":"white-gecko","description":"A minimal self contained HTML file that includes JavaScript and CSS in one file. Built with webpack and Jekyll.","archived":false,"fork":false,"pushed_at":"2022-02-18T13:41:16.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T02:59:35.781Z","etag":null,"topics":["css","html","javascript","jekyll","mwe","webpack"],"latest_commit_sha":null,"homepage":"","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/white-gecko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-18T13:17:31.000Z","updated_at":"2022-02-18T13:22:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2be6aa3-48dc-4327-b5b4-c0b4114b3aaa","html_url":"https://github.com/white-gecko/mwe-self-contained-html","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/white-gecko%2Fmwe-self-contained-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/white-gecko%2Fmwe-self-contained-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/white-gecko%2Fmwe-self-contained-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/white-gecko%2Fmwe-self-contained-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/white-gecko","download_url":"https://codeload.github.com/white-gecko/mwe-self-contained-html/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241900755,"owners_count":20039503,"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":["css","html","javascript","jekyll","mwe","webpack"],"created_at":"2024-10-11T19:47:13.009Z","updated_at":"2025-12-04T04:04:02.801Z","avatar_url":"https://github.com/white-gecko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MWE Self Contained HTML File\n\nThis example shows how to produce a self contained html file with [webpack](https://webpack.js.org/) and [jekyll](https://jekyllrb.com/). In this case the [bootstrap](https://getbootstrap.com/) framework is used as an example.\n\nTo run this example you need node js and ruby with bundler.\n\n```bash\n$ make install\n$ make build\n```\n\nSetting the `mode` in `webpack.config.js` to `development` results in a not minified output of JavaScript and CSS, while setting it to `production` will minify the JavaScript and CSS.\n\nIt is also possible to include everything just in JavaScript without producing a CSS section.\nThis can be achieved by changing the `rules` section to :\n\n```javascript\nrules: [\n  {\n    test: /\\.s[ac]ss$/i,\n    use: [\n      // Creates `style` nodes from JS strings\n      \"style-loader\",\n      // Translates CSS into CommonJS\n      \"css-loader\",\n      // Compiles Sass to CSS\n      \"sass-loader\",\n    ],\n  },\n],\n```\n\nHowever, I suggest to separate JavaScript and CSS, so that browsers with disabled JavaScript still see your styles. Anyhow, a lot can be done with CSS alone, there is not always a need for JavaScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhite-gecko%2Fmwe-self-contained-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhite-gecko%2Fmwe-self-contained-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhite-gecko%2Fmwe-self-contained-html/lists"}