cfpb / generator-cf

Yeoman generator for Capital Framework
http://cfpb.github.io/capital-framework/getting-started/
Creative Commons Zero v1.0 Universal
9 stars 13 forks source link

Generated grunt-browserify task fails if cf-expandables was not selected #108

Closed Scotchester closed 8 years ago

Scotchester commented 8 years ago

If you choose not to include cf-expandables in your generated project, the generated grunt-browserify task will fail.

Running "browserify:main" (browserify) task
>> Error: Cannot find module 'cf-expandables' from '/Users/cranfills/Projects/tax-time-saving/src/static/js'
Warning: Error running grunt-browserify. Use --force to continue.

Aborted due to warnings.

The solution will require testing the array of selected components before including the require line for expandables in main.js.