Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate npm bootstrap-sass; Remove bootstrap-sass gem; Update README #3

Merged
merged 20 commits into from
Dec 13, 2014

Conversation

mbreining
Copy link
Member

Justin, please review. Let's chat tomorrow.

@@ -38,6 +38,17 @@ That's totally different than "Live Reload" which refreshes the browser.

# Rails

## Automatically building the rails-bundle.js
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@justin808
Copy link
Member

@mbreining Anything pending? or ready to merge?

@mbreining
Copy link
Member Author

@justin808, take another look and see if you want to merge. Note that I have not addressed your offline comment on ExtractTextPlugin (add the webpack/assets directory to the asset pipeline config). We should talk.

@justin808
Copy link
Member

I've changed my opinion on this based on a real project. Basically, my thought right now is:

  1. Use rails gem bootstrap-sass, and configure the rails assets to include the webpack/assets directory
  2. Use the bootstrap-sass-loader without the extract text plugin, so that hot reload works.
  3. The final thing that's somewhat non-optimal is that the information on what bootstrap components will be loaded is duplicated for both the rails sass import as well as for the config file for the bootstrap sass loader. It's not that big of a deal, but I hate anytime there's duplicates.

There's a bug with the bootstrap-sass-loader in that it uses a full local path for the font directory. That's clearly a problem when publishing the CSS file for deployment.

Thus, I'd rather let the bootstrap-sass gem and the rails asset pipeline handle all those thorny issues of paths for fonts and images, as well as fingerprinting.

Throughts?

@justin808
Copy link
Member

Here's the issue on the path being absolute: shakacode/bootstrap-sass-loader#3

@mbreining
Copy link
Member Author

@justin808 please take another look. We can continue to iterate over time but this batch of changes should be ready to merge, pending your comments.

4. es6-loader (es6 transpiler)
5. Simultaneously working with Rails 4.2
6. Deployable to Heroku
1. React 0.11 (for front-end app)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will change this shortly, but this can be the next PR

//"bootstrap-sass!./bootstrap-sass.extract-text.config.js");
config.output = { filename: "express-bundle.js", // this file is served directly by webpack
path: __dirname };
//config.module.loaders.push(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove the comments on the extract text plugin.

I think for rails deployments, it's just not worth any complexity to have webpack extract the files...

The reason that we'd want webpack to do it is b/c you want the file for the webpack dev server testing...For right now, I'm not convinced.

@justin808
Copy link
Member

Looking great! getting close!

@mbreining
Copy link
Member Author

Ok, I think all comments are addressed. Please review.

justin808 added a commit that referenced this pull request Dec 13, 2014
Integrate npm bootstrap-sass; Remove bootstrap-sass gem; Update README
@justin808 justin808 merged commit 6bc8002 into shakacode:master Dec 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants