diff --git a/generators/assets/webpack/webpack.go b/generators/assets/webpack/webpack.go index cba2702e1..c89795e36 100644 --- a/generators/assets/webpack/webpack.go +++ b/generators/assets/webpack/webpack.go @@ -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{ @@ -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"