|
|
@ -27,14 +27,14 @@ end |
|
|
|
desc "update SRI hashes" |
|
|
|
task :update_hashes do |
|
|
|
map = { |
|
|
|
'react.js': 'dev', |
|
|
|
'react.min.js': 'prod', |
|
|
|
'react-with-addons.js': 'addons_dev', |
|
|
|
'react-with-addons.min.js': 'addons_prod', |
|
|
|
'react-dom.js': 'dom_dev', |
|
|
|
'react-dom.min.js': 'dom_prod', |
|
|
|
'react-dom-server.js': 'dom_server_dev', |
|
|
|
'react-dom-server.min.js': 'dom_server_prod' |
|
|
|
'react.js' => 'dev', |
|
|
|
'react.min.js' => 'prod', |
|
|
|
'react-with-addons.js' => 'addons_dev', |
|
|
|
'react-with-addons.min.js' => 'addons_prod', |
|
|
|
'react-dom.js' => 'dom_dev', |
|
|
|
'react-dom.min.js' => 'dom_prod', |
|
|
|
'react-dom-server.js' => 'dom_server_dev', |
|
|
|
'react-dom-server.min.js' => 'dom_server_prod' |
|
|
|
} |
|
|
|
site_config = YAML.load_file('_config.yml') |
|
|
|
map.each do |file, key| |
|
|
|