{"id":24263889,"url":"https://github.com/adityavm/webpack-config-basic-dev","last_synced_at":"2026-04-11T07:05:10.236Z","repository":{"id":66812204,"uuid":"112060780","full_name":"adityavm/webpack-config-basic-dev","owner":"adityavm","description":"Basic Webpack config with React, ESLint and HMR support","archived":false,"fork":false,"pushed_at":"2021-01-23T23:11:51.000Z","size":429,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-04-24T07:21:38.578Z","etag":null,"topics":["eslint","hmr","npm","npm-module","react","webpack","webpack-config"],"latest_commit_sha":null,"homepage":null,"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/adityavm.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":"2017-11-26T06:22:02.000Z","updated_at":"2021-01-23T23:11:54.000Z","dependencies_parsed_at":"2023-04-07T14:16:52.063Z","dependency_job_id":null,"html_url":"https://github.com/adityavm/webpack-config-basic-dev","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/adityavm%2Fwebpack-config-basic-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavm%2Fwebpack-config-basic-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavm%2Fwebpack-config-basic-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityavm%2Fwebpack-config-basic-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityavm","download_url":"https://codeload.github.com/adityavm/webpack-config-basic-dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241936708,"owners_count":20045105,"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":["eslint","hmr","npm","npm-module","react","webpack","webpack-config"],"created_at":"2025-01-15T08:53:03.877Z","updated_at":"2026-04-11T07:05:05.216Z","avatar_url":"https://github.com/adityavm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdetails\u003e\n\u003csummary\u003e⚠️ This module is now deprecated.\u003c/summary\u003e\n\u003cp\u003eWebpack has come a long way since it's 1/2/3, and its contributors and maintainers have done a great job simplifying the configuration process. For anything but the most complicated projects, \u003ca href=\"https://github.com/kentcdodds/webpack-config-utils\"\u003ewebpack-config-utils\u003c/a\u003e has enough utility functions to help set up a configuration file that is also easy to reason about. Complicated projects will end up customising this module's defaults enough that they're better off writing their own configuration from scratch anyway.\u003c/p\u003e\n\u003cp\u003eThis module no longer provides the best defaults for most of my projects, and hence I see no value in it. I highly recommend _not_ using it anymore.\u003c/p\u003e\n\u003c/details\u003e\n\n# webpack-config-basic-dev\n\nBasic Webpack config with React, SASS, HMR and optional ESLint and Stylelint support.\n\n[![Build Status](https://img.shields.io/travis/adityavm/webpack-config-basic-dev/master.svg?style=flat-square)](https://travis-ci.org/adityavm/webpack-config-basic-dev)\n\n## Usage\n\n```shell\nnpm i webpack webpack-dev-server react react-dom react-hot-loader babel-core babel-loader css-loader css-hot-loader sass-loader node-sass # dependencies\nnpm i webpack-config-basic-dev\n```\n\n**Note:** You will need the first line of dependencies to ultimately build successfully, but they are not required by this module and are listed here for convenience.\n\nFor ESLint and Stylelint, check the [wiki][1].\n\nCreate a `webpack.config.js` in your app directory's root, and add the following lines:\n\n```javascript\nconst config = require(\"webpack-config-basic-dev\")(__dirname, process.env.NODE_ENV);\nmodule.exports = config;\n```\n\nAdd your package scripts as normal:\n\n```javascript\n{\n  ...\n  \"scripts\": {\n    ...\n    \"start\": \"webpack-dev-server\",\n    \"build\": \"NODE_ENV=production webpack\" // to set environment correctly\n  },\n}\n```\n\n## Assumptions\n\nThe module assumes your app folder follows the following structure:\n\n```\nAppRoot\n  + src         // all source\n    - index.js  // entry\n  + dist        // build folder\n  - package.json\n  - ...\n```\n\n# License\n\n[MIT][2].\n\n[1]: https://github.com/adityavm/webpack-config-basic-dev/wiki/Additional-Notes\n[2]: https://github.com/adityavm/webpack-config-basic-dev/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityavm%2Fwebpack-config-basic-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityavm%2Fwebpack-config-basic-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityavm%2Fwebpack-config-basic-dev/lists"}