Closed huguangju closed 8 years ago
Hmm... Maybe related to https://github.com/vigetlabs/gulp-starter/issues/249
Feel like ttf2woff2
has been problematic. Try removing woff2 from the iconFont config extensions list, upgrading gulp-iconfont
, or removing the iconfont config all together. I've been using SVG sprites instead for a while now.
Weird that it's throwing an error in Nunjucks though.
No matter upgraded gulp-iconfont, removing woff2 from config extensions list or removed all iconfont config, it's also reported error.
After upgraded gulp-iconfont to 6.0.0
, it reproted:
Error in plugin 'svgicons2svgfont'
Message:
The "appendUnicode" option were renamed "prependUnicode". See https://github.com/nfroidure/gulp-svgicons2svgfont/issues/33
Maybe it is cause by Unicode Character 'LINE SEPARATOR' (U+2028)
, Javascript parse error on '\u2028' unicode character , can saw it in git diff
:
mozilla/nunjucks#126
I think this may be fixed by #256
@huguangju Can you pull the latest from master and confirm?
Also fixed the upgrade issue you mentioned with #258
Closing this, but please re-open if you're still having issues.
After removed Unicode Line Separator in Bash u2028, this end up worked
# http://stackoverflow.com/a/16552635/4723163
sed -i.old $'s/\xE2\x80\xA8/ /g' inFile
reported error:
I just add a paragraph in index.html like below, and run
gulp production
: