acm-ucdenver / website

ACM UCDenver Chapter Website
1 stars 2 forks source link

Find better js script tag placement #95

Open Wmaxlees opened 9 years ago

Wmaxlees commented 9 years ago

As a developer, I would like a better way to include my ng-controller script than to include a new script() line in the layout.jade file.

Wmaxlees commented 9 years ago

Maybe automation is the solution? https://medium.com/@kentcdodds/angularjs-script-loading-108652bde20e

robfitzgerald commented 9 years ago

that looks like a solution for a much larger scale application than ours. the code to dynamically search and build the script tags might just end up being the same number of lines as the static solution. but, again, since this is our playground to try things, i'm down, if you want to try it. webpack (https://github.com/webpack/webpack) is mentioned in that article, and it seems pretty well supported.