{"id":16193478,"url":"https://github.com/pyramation/webpack-4-boilerplate","last_synced_at":"2025-04-07T15:18:26.812Z","repository":{"id":66351182,"uuid":"174273389","full_name":"pyramation/webpack-4-boilerplate","owner":"pyramation","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-07T05:13:05.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T02:03:53.675Z","etag":null,"topics":[],"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/pyramation.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":"2019-03-07T04:48:05.000Z","updated_at":"2019-03-07T05:13:06.000Z","dependencies_parsed_at":"2023-02-26T23:15:52.085Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/webpack-4-boilerplate","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/pyramation%2Fwebpack-4-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fwebpack-4-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fwebpack-4-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fwebpack-4-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/webpack-4-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675598,"owners_count":20977378,"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":[],"created_at":"2024-10-10T08:14:59.450Z","updated_at":"2025-04-07T15:18:26.789Z","avatar_url":"https://github.com/pyramation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack 4 Boilerplate ES6/Sass with build-in option to change preprocessor (less/stylus)\nThis \u003cstrong\u003eWebpack 4 Boilerplate\u003c/strong\u003e comes with 2 builds:\n\n```\nnpm run build:dev\n```\n-\u003e starts dev server on \u003ccode\u003elocalhost:8080\u003c/code\u003e with livereload, sourcemap\u003cbr\u003e\u003cbr\u003e\n\n```\nnpm run build:prod\n```\n-\u003e creates prod files to \u003ccode\u003e/dist\u003c/code\u003e with:\n\n  1. compiles sass/stylus/less to css \u003cbr\u003e\n  2. autoprefixer for browser compability \u003cbr\u003e\n  3. compiles ES6/ES7/ES8 to ES5 \u003cbr\u003e\n  4. minifying for css/js \u003cbr\u003e\n  5. uglyfing js code \u003cbr\u003e\n  6. hash css and js file (file versioning for browser caching) \u003cbr\u003e\n\n## Setup\n1. git clone https://github.com/mwieth/Webpack-4-boilerplate.git\n2. run \u003ccode\u003enpm install\u003c/code\u003e in project folder\n3. \u003ccode\u003enpm run build:dev\u003c/code\u003e\n\n## Preprocessor support (default: Sass)\n\n--\u003e if u want to change to \u003cstrong\u003eless\u003c/strong\u003e run:\n\n  1. \u003ccode\u003enpm install less less-loader --save-dev\u003c/code\u003e\n  2. \u003ccode\u003enpm uninstall node-sass sass-loader\u003c/code\u003e\n\n  3. set \u003ccode\u003eselectedPreprocessor\u003c/code\u003e in \\webpack\\loader.js to less\n\n  4. change default files in styles from sass to less (*.less) and update \u003ccode\u003eimport\u003c/code\u003e in index.js line 1\n\n--\u003e if u want to change to \u003cstrong\u003estylus\u003c/strong\u003e run:\n\n  1. \u003ccode\u003enpm install stylus stylus-loader --save-dev\u003c/code\u003e\n  2. \u003ccode\u003enpm uninstall node-sass sass-loader\u003c/code\u003e\n\n  3. set \u003ccode\u003eselectedPreprocessor\u003c/code\u003e in \\webpack\\loader.js to stylus\n\n  4. change default files in styles from sass to stylus (*.styl) update \u003ccode\u003eimport\u003c/code\u003e in index.js line 1\n\n--\u003e if u want to use the 'original' loose \u003cstrong\u003e*.sass\u003c/strong\u003e syntax just change the files from\n*.scss to *.sass and update \u003ccode\u003eimport\u003c/code\u003e in index.js line 1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fwebpack-4-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fwebpack-4-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fwebpack-4-boilerplate/lists"}