Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack_integrator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack_integrator

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

WebpackIntegrator

A custom Rails generator that does the minimum to integrate JavaScript/Webpack with Rails. Look into Webpacker gem if you want a

Known Issues

There might be incompatibility issue between Foreman gem and the latest version of Thor. If encountered, run bundle update to revert to earlier version of Thor that works well with Foreman.

Installation

Create a new Rails project

$ rails new myapp

Add this line to your application's Gemfile:

gem 'webpack_integrator'

And then execute:

$ bundle

Run generator

$ rails generate webpack_integrator:install

Notice the files and folders added to your rails directory. This is what you need to integrate a frontend Webpack to your Rails api

Finally, insert the following line in app/views/layouts/application.html.erb within the head tag

<%= javascript_include_tag '/webpack/index-bundle.js' %>

To launch page, use foreman

$ foreman start -f Procfie.dev

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/webpack_integrator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the WebpackIntegrator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 29 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc