Verified Commit b4347d3d authored by Aral Balkan's avatar Aral Balkan
Browse files

Generate the same blockerList.json on both development and production

parent de3f7167
......@@ -710,9 +710,7 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
blockerListJSONFilePath = path.join dataDirectory, 'blockerList.json'
metadataFilePath = path.join dataDirectory, 'metadata.json'
# In development, pretty print the JSON to make it easier to debug.
# In production, minify it for better performance.
args = if app.isRunningInDevelopment then [@rules, null, 4] else [@rules]
args = [@rules]
output = JSON.stringify.apply @, args
hash = checksum(output)
......@@ -847,7 +845,7 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
partialRuleFile = path.join partialRuleFilePath, "#{parsedPathOfOriginalFile.base}.rule.json"
#console.log "Partial rule file: #{partialRuleFile}"
args = if app.isRunningInDevelopment then [rules, null, 4] else [rules]
args = [rules]
rulesJSON = (JSON.stringify.apply @, args)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment