doc: Bug fix: add build tag 'example'

This commit is contained in:
Hajime Hoshi 2016-08-26 23:33:17 +09:00
parent 4a1a8aec11
commit 6857dfd177

View File

@ -294,7 +294,7 @@ func outputExampleContent(e *example) error {
out := filepath.Join(dir, e.Name+".js")
path := "github.com/hajimehoshi/ebiten/examples/" + e.Name
if err := execute("gopherjs", "build", "-m", "-o", out, path); err != nil {
if err := execute("gopherjs", "build", "-tags", "example", "-m", "-o", out, path); err != nil {
return err
}