Check main.js bundle for vue and fail if found
We have had a few cases where @mikegreiling has had to refactor some script inclusion to avoid vue sneaking into main.js
and being loaded on pages where its not needed.
We should fail a CI job if vue is found within main.js
.
We should use the JSON output of the webpack bundle analyzer to find what is included in main.js
.
@mikegreiling says we generate one of these JSON reports from the rake gitlab:assets:compile
step and this can be generated locally by running WEBPACK_REPORT=true yarn webpack-prod
.