Skip to content

Commit

Permalink
Remove JSON sourceHandler
Browse files Browse the repository at this point in the history
Some weirdness happens when using this with meteor-bower. Probably
because we both registered JSON sourceHandlers. Removing the handler
means meteor will not generate fonts when the iconfont.json file
changes (unless meteor-bower is present), and a meteor restart or
an SVG change is needed to trigger the font regeneration.
  • Loading branch information
André Neves committed Apr 8, 2015
1 parent d109821 commit b3db022
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
andrefgneves:[email protected].7
andrefgneves:[email protected].8
[email protected]
[email protected]
[email protected]
Expand All @@ -9,7 +9,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
local-test:andrefgneves:[email protected].7
local-test:andrefgneves:[email protected].8
[email protected]
[email protected]
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: 'Generate an icon font from SVG files',
version: '0.1.7',
version: '0.1.8',
git: 'https://github.com/andrefgneves/meteor-iconfont.git',
name: 'andrefgneves:iconfont'
});
Expand Down
3 changes: 0 additions & 3 deletions plugin/iconfont.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,5 @@ loadJSONFile = (filePath) ->

{}

# Make meteor listen for changes on json files
Plugin.registerSourceHandler 'json', archMatching: 'web', ->

Plugin.registerSourceHandler 'iconfont.json', archMatching: 'web', handler
Plugin.registerSourceHandler 'svg', archMatching: 'web', handler
2 changes: 1 addition & 1 deletion smart.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"description": "Generate an icon font from SVG files",
"homepage": "https://github.com/andrefgneves/meteor-iconfont",
"author": "Andre Neves (https://twitter.com/seven)",
"version": "0.1.7",
"version": "0.1.8",
"git": "https://github.com/andrefgneves/meteor-iconfont.git"
}

0 comments on commit b3db022

Please sign in to comment.