This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi guys,
Hoping someone can help me out here, when I combine a single JS file into an array of files, I'm getting an Unterminated string literal
and the combined file doesn't load anything at all. There's no indication as to which file is causing the issue (although basic troubleshooting removing individual files from the list I can work this out), or which line in said file is causing the issue.
So, when I load the files as follows, the combined JS file breaks:
<script src="{{ ['assets/js/jquery.scrollex.min.js', 'assets/js/jquery.scrolly.min.js', 'assets/js/skel.min.js', 'assets/js/util.js', 'assets/js/main.js', 'assets/js/prism.js']|theme }}"></script>
However, if I load the files as follows, everything works perfectly:
<script src="{{ ['assets/js/jquery.scrollex.min.js', 'assets/js/jquery.scrolly.min.js', 'assets/js/skel.min.js', 'assets/js/util.js', 'assets/js/main.js']|theme }}"></script>
<script src="{{ 'assets/js/prism.js'|theme }}"></script>
Therefore, I do not understand why I can call the file directly and it works perfectly fine, but if I add it to the combined list it does not?
Is there a way I can identify which line within the prism.js
file is causing this issue with combining?
If it makes any difference, I'm using the zwiebl-stellar
theme
1-1 of 1