{"id":14976458,"url":"https://github.com/wochap/webpack-boilerplate","last_synced_at":"2025-10-27T20:31:50.633Z","repository":{"id":9970750,"uuid":"63963342","full_name":"wochap/webpack-boilerplate","owner":"wochap","description":"Webpack 4 boilerplate (babel, eslint, prettier, jest, sass, postcss, hmr, browsersync)","archived":false,"fork":false,"pushed_at":"2022-12-10T20:27:44.000Z","size":4417,"stargazers_count":33,"open_issues_count":20,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T08:56:30.471Z","etag":null,"topics":["babel","boilerplate","es2015","eslint","hmr","jest","postcss","prettier","scss","simple","webpack","webpack-boilerplate","webpack-dev-server","webpack2","webpack3","webpack4"],"latest_commit_sha":null,"homepage":"","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/wochap.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":"2016-07-22T15:20:49.000Z","updated_at":"2022-06-08T20:39:37.000Z","dependencies_parsed_at":"2023-01-11T20:13:48.668Z","dependency_job_id":null,"html_url":"https://github.com/wochap/webpack-boilerplate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wochap%2Fwebpack-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wochap%2Fwebpack-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wochap%2Fwebpack-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wochap%2Fwebpack-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wochap","download_url":"https://codeload.github.com/wochap/webpack-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553205,"owners_count":19491390,"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":["babel","boilerplate","es2015","eslint","hmr","jest","postcss","prettier","scss","simple","webpack","webpack-boilerplate","webpack-dev-server","webpack2","webpack3","webpack4"],"created_at":"2024-09-24T13:53:55.162Z","updated_at":"2025-10-27T20:31:45.320Z","avatar_url":"https://github.com/wochap.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Webpack boilerplate\n\nA highly scalable and simple webpack boilerplate for **client** apps.\n\n\u003e Older versions of this boilerplate with [webpack v1](https://github.com/wochap/webpack-boilerplate/tree/webpack-1), [webpack v2](https://github.com/wochap/webpack-boilerplate/tree/webpack-2), [webpack v3](https://github.com/wochap/webpack-boilerplate/tree/webpack-3)\n\n## Quick start\n\nCreate a `.env` file. Then:\n\n```sh\n# install dependencies\n$ yarn\n\n# serve with hot reload\n$ yarn build:watch\n# or\n$ yarn dev\n\n# serve with hot reload and inspect webpack dev server\n# https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js\n$ yarn dev:inspect\n\n# build for production with minification\n$ yarn build\n\n# run tests\n$ yarn test\n\n# run tests and watch\n$ yarn test:watch\n\n# run test coverage report\n$ yarn test:coverage\n```\n\n**NOTE: For disable source map or bundle analyzer report (both on production only) and browser sync (on development), just remove it from `.env` file.**\n\n## Documentation\n\n### Features\n\n- HMR\n- CSS \u003c PostCSS \u003c SCSS\n- JS \u003c ES2015 \u003c ESLint \u003c Prettier\n- Browser Sync\n- Images and fonts well configured.\n- Long term caching.\n- Tree shaking.\n- Tests with Jest.\n\n### Boilerplate structure\n\n```\n.\n├── .editorconfig             # editor config\n├── .env.defaults             # env default variables\n├── .env.schema               # env variables schema (for validation)\n├── .eslintignore             # eslint ignore config\n├── .eslintrc                 # eslint config\n├── .gitignore                # git ignore config\n├── .nvmrc                    # nvm config\n├── .prettierrc               # prettier config\n├── babel.config.js           # babel config\n├── package.json              # https://docs.npmjs.com/files/package.json\n├── postcss.config.js         # postcss config\n├── README.md                 # this file\n├── webpack.config.js         # webpack config\n├── yarn.lock                 # https://yarnpkg.com/en/docs/yarn-lock\n├── coverage/                 # jest coverage output\n├── dist/                     # webpack build output\n├── test/                     # jest config\n├── lib/                      # future external packages\n├── public/                   # files that will be copied to dist\n└── src/                      # source code\n    ├── app/\n    │   └── main.js           # app entry file\n    ├── styles/\n    │   └── main.scss         # main scss file\n    └── index.html            # template used by html-webpack-plugin\n```\n\n### Troubleshooting\n\n- `Module build failed: Error: ENOENT: no such file or directory, scandir`\n\nRebuild node-sass\n\n```sh\n$ npm rebuild node-sass\n```\n\n## [TODO](https://github.com/wochap/webpack-boilerplate/projects/1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwochap%2Fwebpack-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwochap%2Fwebpack-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwochap%2Fwebpack-boilerplate/lists"}