Skip to content

Commit

Permalink
Use dist graphiql.min.* instead of graphiql.*
Browse files Browse the repository at this point in the history
This version does not include Webpack's inline source mapping, which uses eval
and may conflict with the host application's Content Security Policy.
  • Loading branch information
sambostock committed Apr 21, 2023
1 parent 8e48c89 commit 1c59acc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 71,613 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ task :update_graphiql do
new_css_versions["graphiql"] = new_version

puts "Copying GraphiQL #{new_version}"
FileUtils.cp("./graphiql.js", "../../../app/assets/javascripts/graphiql/rails/graphiql-#{new_version}.js")
FileUtils.cp("./graphiql.css", "../../../app/assets/stylesheets/graphiql/rails/graphiql-#{new_version}.css")
FileUtils.cp("./graphiql.min.js", "../../../app/assets/javascripts/graphiql/rails/graphiql-#{new_version}.js")
FileUtils.cp("./graphiql.min.css", "../../../app/assets/stylesheets/graphiql/rails/graphiql-#{new_version}.css")
end

FileUtils.cd("./node_modules/react") do
Expand Down
Loading

0 comments on commit 1c59acc

Please sign in to comment.