Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Assets missing on new v0.9.1.2 app without npm fixes #517
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Jul 16, 2017
1 parent 8ce6f73 commit cba8924
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion generators/assets/webpack/webpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (

"github.com/gobuffalo/buffalo/generators"
"github.com/gobuffalo/buffalo/generators/assets"
"github.com/gobuffalo/buffalo/generators/assets/standard"
"github.com/gobuffalo/makr"
"github.com/pkg/errors"
)

var logo = &makr.RemoteFile{
Expand All @@ -27,7 +29,12 @@ func New(data makr.Data) (*makr.Generator, error) {
_, err := exec.LookPath("npm")
if err != nil {
fmt.Println("Could not find npm/node. Skipping webpack generation.")
return g, nil

wg, err := standard.New(data)
if err != nil {
return g, errors.WithStack(err)
}
return wg, nil
}

command := "npm"
Expand Down

0 comments on commit cba8924

Please sign in to comment.