Rails and Webpack

Hi there!

I'm trying to switch from Sprockets, Bower and Gulp to Webpack.

Does anyone use Ruby on Rails with NodeJS as a packages manager and Webpack
as assets bundler? What approach do you use? How do you work with assets in
dev and in prod?

My goal is to transform my existing Ruby on Rails app to an isomorphic app
based on ReactJS and Ruby on Rails.

Any help is very appreciated.

P.s. currently I'm trying to do this using this approach:

Rails 5 added support fo webpack, is upgrading an option?

···

On Mon, Mar 27, 2017 at 1:42 PM, Konstantin Kozhin <konstantin@profitco.ru> wrote:

Hi there!

I'm trying to switch from Sprockets, Bower and Gulp to Webpack.

Does anyone use Ruby on Rails with NodeJS as a packages manager and
Webpack as assets bundler? What approach do you use? How do you work with
assets in dev and in prod?

My goal is to transform my existing Ruby on Rails app to an isomorphic app
based on ReactJS and Ruby on Rails.

Any help is very appreciated.

P.s. currently I'm trying to do this using this approach:
GitHub - shakacode/react-webpack-rails-tutorial: Example of integration of Rails, react, redux, using the react_on_rails gem, webpack, enabling the es7 and jsx transpilers, and node integration. And React Native! Live Demo:

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--

Viktor K. Vasquez

"Adopt the pace of nature: her secret is patience." Ralph Waldo Emerson

Hi Viktor,

I'm working with Rails 4.2 currently.
I'm planning to upgrade to Rails 5 but Webpack support is currently in
beta/rc1 versions only. If I'm not mistaken.

Do you think it is better to plan the upgrade now rather than trying with
Webpack on Rail 4?

···

On Mon, Mar 27, 2017 at 8:44 PM Viktor Ml. Justo Vasquez < viktor.is.a.genius@gmail.com> wrote:

Rails 5 added support fo webpack, is upgrading an option?

On Mon, Mar 27, 2017 at 1:42 PM, Konstantin Kozhin <konstantin@profitco.ru> wrote:

Hi there!

I'm trying to switch from Sprockets, Bower and Gulp to Webpack.

Does anyone use Ruby on Rails with NodeJS as a packages manager and Webpack
as assets bundler? What approach do you use? How do you work with assets in
dev and in prod?

My goal is to transform my existing Ruby on Rails app to an isomorphic app
based on ReactJS and Ruby on Rails.

Any help is very appreciated.

P.s. currently I'm trying to do this using this approach:

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--

Viktor K. Vasquez

"Adopt the pace of nature: her secret is patience." Ralph Waldo Emerson

Not my strong suite this decade. I was an early Rails user. I could
easily come in on that if they need the help, and get it done. Let me
know if they want to try me.

xc

resume.doc (10.1 KB)

···

On Mon, Mar 27, 2017 at 10:58 AM, Konstantin Kozhin <konstantin@profitco.ru> wrote:

Hi Viktor,

I'm working with Rails 4.2 currently.
I'm planning to upgrade to Rails 5 but Webpack support is currently in
beta/rc1 versions only. If I'm not mistaken.

Do you think it is better to plan the upgrade now rather than trying with
Webpack on Rail 4?

On Mon, Mar 27, 2017 at 8:44 PM Viktor Ml. Justo Vasquez > <viktor.is.a.genius@gmail.com> wrote:

Rails 5 added support fo webpack, is upgrading an option?

On Mon, Mar 27, 2017 at 1:42 PM, Konstantin Kozhin >> <konstantin@profitco.ru> wrote:

Hi there!

I'm trying to switch from Sprockets, Bower and Gulp to Webpack.

Does anyone use Ruby on Rails with NodeJS as a packages manager and
Webpack as assets bundler? What approach do you use? How do you work with
assets in dev and in prod?

My goal is to transform my existing Ruby on Rails app to an isomorphic
app based on ReactJS and Ruby on Rails.

Any help is very appreciated.

P.s. currently I'm trying to do this using this approach:
GitHub - shakacode/react-webpack-rails-tutorial: Example of integration of Rails, react, redux, using the react_on_rails gem, webpack, enabling the es7 and jsx transpilers, and node integration. And React Native! Live Demo:

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--

Viktor K. Vasquez

"Adopt the pace of nature: her secret is patience." Ralph Waldo Emerson

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;