{"id":14976544,"url":"https://github.com/jaredlunde/webpack2-react-sass-env-boilerplate","last_synced_at":"2025-08-02T11:04:04.920Z","repository":{"id":57154468,"uuid":"84033383","full_name":"jaredLunde/webpack2-react-sass-env-boilerplate","owner":"jaredLunde","description":"A boilerplate for creating Javascript packages with Webpack 3*, babel-preset-env, React + HMR, and SASS.","archived":false,"fork":false,"pushed_at":"2017-08-09T22:31:17.000Z","size":22,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T09:52:12.365Z","etag":null,"topics":["babel-","babel-webpack","boilerplate","boilerplate-template","code-splitting","hmr","hot-reload","react","react-boilerplate","sass","webpack","webpack2","webpack2-boilerplate"],"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/jaredLunde.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}},"created_at":"2017-03-06T05:27:27.000Z","updated_at":"2017-08-04T16:47:42.000Z","dependencies_parsed_at":"2022-09-06T16:12:00.793Z","dependency_job_id":null,"html_url":"https://github.com/jaredLunde/webpack2-react-sass-env-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaredLunde/webpack2-react-sass-env-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fwebpack2-react-sass-env-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fwebpack2-react-sass-env-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fwebpack2-react-sass-env-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fwebpack2-react-sass-env-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredLunde","download_url":"https://codeload.github.com/jaredLunde/webpack2-react-sass-env-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredLunde%2Fwebpack2-react-sass-env-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378382,"owners_count":24240894,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["babel-","babel-webpack","boilerplate","boilerplate-template","code-splitting","hmr","hot-reload","react","react-boilerplate","sass","webpack","webpack2","webpack2-boilerplate"],"created_at":"2024-09-24T13:54:03.002Z","updated_at":"2025-08-02T11:04:04.871Z","avatar_url":"https://github.com/jaredLunde.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack2-react-sass-env-boilerplate\n### A boilerplate for creating applications with Webpack 3+, Babel w/ babel-preset-env, React and SASS.\n\nThis package includes everything you need to start building an application with\nWebpack 3, React and SASS.\n\n## To use with a bash script:\n1. Create `create-app` executable\n```sh\necho '#!/bin/bash\nif [ -z \"$1\" ]; then\n  echo \"No package name was provided.\"\n  exit 1\nfi\n\nPKG_NAME=$1\nmkdir $PKG_NAME\ncd $PKG_NAME\nnpm init -y\nnpm install webpack2-react-sass-env-boilerplate\ncp -r ./node_modules/webpack2-react-sass-env-boilerplate/. ./\nmv package.json.tpl package.json\nfind . -type f \\( -name \"*.html\" -o -name \"*.js\" -o -name \"*.ejs\" -o -name \"*.json\" \\) -and -not -path \"*/node_modules/*\" -exec sed -i.bak -e \"s/{{PKG_NAME}}/${PKG_NAME}/g\" {} \\;;\nfind . -type f -name \"*.bak\" -and -not -path \"*/node_modules/*\" -exec rm {} \\;;\nmv \"./assets/css/{{PKG_NAME}}\" \"./assets/css/${PKG_NAME}\"\nnpm start' \u003e create-app\n```\n\n2. Make sure you can execute the script\n```sh\nchmod 0744 create-app\n```\n\n3. Execute the script w/ a package name\n```sh\n./create-app your-pkg-name\n```\n\n### package.json\nHere you'll find a list of devDependencies for creating this type of\napplication, however, they are listed under 'dependencies' since I use this\nproject as a grouped devDependency in my personal projects.\n\n\n### package.json.tpl\nHere is an example of what your package.json might look like, were you to\nuse this package as a devDependency. Should you choose to do so, you can\ninstall this package with the command:\n\n`npm install --save-dev webpack2-react-sass-env-boilerplate`\n\n\n### server.js\nUsing the command `NODE_ENV=development \u0026\u0026 node server.js` will start your\napplication with hot module reloading on port `:3000` of your localhost, using\nthe webpack configuration at `webpack.config.dev.js` and the index file at\n`index.html`.\n\n\n### webpack.config.dev.js\nThis is an example of a basic development webpack configuration file for this\ntype of application.\n\n\n### webpack.config.js\nThis is an example of a basic distribution webpack configuration file for this\ntype of application. Commented out are examples of implementing Modernizr and\nhttp2 aggressive code splitting.\n\n\n### .babelrc\nThis is an example of a basic Babel 6 configuration utilizing babel-preset-env.\n\n\n### /src\nThis is where example index files for both hot reloading (`index.hot.js`) and\ndistribution builds (`index.js`) are located, as well as the 'Hello world'\nReact component (`App.js`).\n\n\n### /assets\nDevelopment Javascript files are output to this folder from\n`webpack.config.dev.js` and static assets such as images and SASS can be\nplaced in here.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredlunde%2Fwebpack2-react-sass-env-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredlunde%2Fwebpack2-react-sass-env-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredlunde%2Fwebpack2-react-sass-env-boilerplate/lists"}