Skip to content

using production react #61

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

Merged
merged 2 commits into from
Jan 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ task :update_graphiql do
new_js_versions["react"] = new_version

puts "Copying React #{new_version}"
FileUtils.cp("./umd/react.development.js", "../../../app/assets/javascripts/graphiql/rails/react-#{new_version}.js")
FileUtils.cp("./umd/react.production.min.js", "../../../app/assets/javascripts/graphiql/rails/react-#{new_version}.js")

end

Expand All @@ -66,7 +66,7 @@ task :update_graphiql do
new_js_versions["react-dom"] = new_version

puts "Copying ReactDOM #{new_version}"
FileUtils.cp("./umd/react-dom.development.js", "../../../app/assets/javascripts/graphiql/rails/react-dom-#{new_version}.js")
FileUtils.cp("./umd/react-dom.production.min.js", "../../../app/assets/javascripts/graphiql/rails/react-dom-#{new_version}.js")
end
end

Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/graphiql/rails/application.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//= require ./react-16.6.0
//= require ./react-dom-16.6.0
//= require ./react-16.7.0
//= require ./react-dom-16.7.0
//= require ./fetch-0.10.1
//= require ./graphiql-0.12.0
Loading