{"id":25343195,"url":"https://github.com/nihey/webpack2-single-page-boilerplate","last_synced_at":"2026-04-29T01:33:51.978Z","repository":{"id":138589767,"uuid":"89660364","full_name":"nihey/webpack2-single-page-boilerplate","owner":"nihey","description":"Boilerplate for a single page app using webpack 2","archived":false,"fork":false,"pushed_at":"2019-10-21T19:11:54.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T14:26:54.354Z","etag":null,"topics":["boilerplate","webpack"],"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/nihey.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-04-28T02:42:21.000Z","updated_at":"2018-05-03T08:56:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4139fb5-261a-4438-8f03-e2894f83a1fb","html_url":"https://github.com/nihey/webpack2-single-page-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nihey/webpack2-single-page-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihey%2Fwebpack2-single-page-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihey%2Fwebpack2-single-page-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihey%2Fwebpack2-single-page-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihey%2Fwebpack2-single-page-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nihey","download_url":"https://codeload.github.com/nihey/webpack2-single-page-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihey%2Fwebpack2-single-page-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["boilerplate","webpack"],"created_at":"2025-02-14T10:37:47.455Z","updated_at":"2026-04-29T01:33:51.961Z","avatar_url":"https://github.com/nihey.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack Single Page Boilerplate\n\nA boilerplate for a single page app using [webpack][webpack_link]\n\n[![Build Status](https://travis-ci.org/nihey/webpack2-single-page-boilerplate.svg?branch=master)](https://travis-ci.org/nihey/webpack2-single-page-boilerplate)\n[![Dependency Status](https://david-dm.org/nihey/webpack2-single-page-boilerplate.png)](https://david-dm.org/nihey/webpack2-single-page-boilerplate)\n\n# Why should I use it\n\nSo far, this is the best way I found to build files like `index.html` into\n[webpack][webpack_link]. This boilerplate handles Javascript, CSS and HTML\nbundling using only [webpack][webpack_link].\n\n# Usage\n\nThe general directory structure is:\n\n```\n.\n├── assets\n│   └── images\n│       └── favicon.png\n├── index.html\n├── package.json\n├── scripts\n│   ├── config\n│   │   ├── default.js\n│   │   └── production.js\n│   └── index.js\n├── styles\n│   └── index.scss\n└── webpack.config.js\n```\n\n- Your javascript entry point is `scripts/index.js`\n- Your style entry point is `styles/index.scss`\n- `scripts/config` is the only folder that behaves in a different way:\n```javascript\n// Imports the content from 'config/default.js' by default.\n// When running webpack with `NODE_ENV=production` it will import\n// 'config/production.js'.\nimport Config from 'config';\n```\n\n# Commands\n\n- `npm test` - Run ESLint tests\n- `npm run watch` - Run a `webpack-dev-server`, serving the project under `http://localhost:8000`\n- `npm run build` - Builds the project and output it to `dist/`\n- `npm run production` - Builds the project on production mode and output it to `dist/`\n\n# About\n\nThis boilerplate includes the following loaders:\n\n  - `babel-loader`: Enable ES6 features.\n  - `file-loader`: Call `require` for binary files.\n  - `img-loader`: Optimize image compression.\n  - `json-loader`: Call `require` for `json` files.\n  - `sass-loader`: Style your pages with [Sass](http://sass-lang.com/).\n  - `css-loader`: Enables importing of CSS files\n\nIt also includes the following plugins:\n\n  - `extract-text-webpack-plugin`: Extract CSS and HTML text from bundled styles and HTML.\n\n# License\n\nThis code is released under\n[CC0](http://creativecommons.org/publicdomain/zero/1.0/) (Public Domain)\n\n[webpack_link]: http://webpack.js.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihey%2Fwebpack2-single-page-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnihey%2Fwebpack2-single-page-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihey%2Fwebpack2-single-page-boilerplate/lists"}