{"id":16054728,"url":"https://github.com/gauravtiwari/webpacker_example-1","last_synced_at":"2026-04-11T06:38:50.929Z","repository":{"id":145272427,"uuid":"101672300","full_name":"gauravtiwari/webpacker_example-1","owner":"gauravtiwari","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-28T18:37:32.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T09:11:14.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/gauravtiwari.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-08-28T18:06:09.000Z","updated_at":"2017-12-09T21:03:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"53956371-dc5d-48bf-bac4-7f10638f5bfe","html_url":"https://github.com/gauravtiwari/webpacker_example-1","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"ea96c82534dcf91052447e9e4be6f7bca5cc8f27"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravtiwari%2Fwebpacker_example-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravtiwari%2Fwebpacker_example-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravtiwari%2Fwebpacker_example-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravtiwari%2Fwebpacker_example-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gauravtiwari","download_url":"https://codeload.github.com/gauravtiwari/webpacker_example-1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244574803,"owners_count":20474818,"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-09T02:03:08.514Z","updated_at":"2025-12-31T00:06:42.669Z","avatar_url":"https://github.com/gauravtiwari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage\n\nRun `rails s` \u0026 `ruby ./bin/webpack-dev-server` in separate terminal windows. Foreman does currently not work for me, so I have not added it.\n\nYou can switch between webpack/sprockets for javascript by commenting/uncommenting in `app/views/layouts/application.html.erb`.\n\nCommenting out `import './../cable'` in `app/javascript/packs/application.js` confirms that the webpack is loading. -\u003e console: `'Hello World from Webpacker'`\n\n# Configuration\n\n```\n$ rails new webpacker_example --webpack\n\n$ cd webpacker_example\n\n# loading webpack from master + adding jquery-rails \u0026 jquery-ui-rails\n\n$ bundle update\n\n$ rails webpacker:install\n\n$ rails g controller welcome index hello\n\n# update routes.rb to use 'welcome#index' as root\n\n# update app/assets/javascripts.application.js to require jquery \u0026 jquery-ui\n\n# update app/javascript/packs/application.js to import rails-ujs \u0026 turbolinks \u0026 jquery \u0026 jquery-ui \u0026 './../cable'\n\n# dublicate cable.js \u0026 channels dir from app/assets/javascripts to app/javascript\n\n# update app/javascript/cable.js to import actioncable and the entire channels dir\n\n$ yarn add rails-ujs turbolinks jquery jquery-ui actioncable\n\n# update app/views/welcome/... to link to each other\n\n# update app/views/layouts/application.html.erb to load javascript pack 'application'\n\n$ rails assets:precompile\n\n# try to add more packages with yarn. they will not work imported with webpack\n```\n\n# Issues\n\n**1) Turbolinks not working**\n-\u003e links embedded in views\n\n**2) jQuery not working**\n-\u003e Doing simple things like `$('body').hide();` throws an error.\n\n**3) actioncable not working**\n-\u003e console errors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauravtiwari%2Fwebpacker_example-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgauravtiwari%2Fwebpacker_example-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauravtiwari%2Fwebpacker_example-1/lists"}