Skip to content

Conversation

@dhh
Copy link
Member

@dhh dhh commented Aug 11, 2017

Having a million different singletons all referring to each other was getting too much. Now there’s a single root singleton and just normal classes used through composition instead.


puts "Creating javascript app source directory"
directory "#{__dir__}/javascript", "#{Webpacker::Configuration.source}"
directory "#{__dir__}/javascript", "app/javascript"
Copy link
Member

Choose a reason for hiding this comment

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

If someone re-runs webpacker:install this will re-create app/javascriptif the source path is not the default we ship

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I see. We can revert that then.

David Heinemeier Hansson and others added 4 commits August 11, 2017 15:32
Need a better system for ensuring that the config is kept updated with
new keys before we nix it.
Copy link
Member

@gauravtiwari gauravtiwari left a comment

Choose a reason for hiding this comment

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

Looks great 🍰 💯

@gauravtiwari gauravtiwari merged commit c895cb6 into master Aug 11, 2017
@gauravtiwari gauravtiwari deleted the single-singleton branch August 11, 2017 21:46
yoshdog pushed a commit to yoshdog/react-rails that referenced this pull request Sep 11, 2017
Webpack has changed their public API in this PR:
rails/webpacker#636

This PR allows `react-rails` to work with the latest webpacker version.
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.

3 participants