You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be related to #22 but I've done a bit of digging and figured I'd throw it into its own issue. Please close/reassign as needed.
I've been trying to get this plugin to work with jekyll for a few hours now and have been able to track down the issue to something with compressing javascript, and subsequently with the exclusion not working. (As a note, this has taken a while as it appears that #33 is still present.)
I should note this only happens for production builds JEKYLL_ENV=production be jekyll b (with and without --watch or --incremental).
I've already gone through and made sure to enable harmony:
uglifier_args:
harmony: true
If I run with compress_javascript: false the compression works just fine, however as soon as I allow for javascript to be compressed, I get the following error, with everything up to date as of today. jekyll 3.8.6 | Error: Unexpected token: operator (<)
There is no other information provided with this error. I'm currently only using the bootstrap.bundle.js, query-3.3.1.slim.min.js and respond.js for javascript files. I even tried to exclude all of them using an exclude for each file individually and the error seems to still happen, so it would appear that something is broken with the exclude or just in javascript processing in general currently.
I've tried excluding in both the following ways:
#With and without quoted strings
exclude:
- jquery-3.3.1.slim.min.js
- bootstrap.bundle.js
- bootstrap.bundle.js.map
- bootstrap.bundle.min.js
- bootstrap.bundle.min.js.map
- respond.js
I haven't found a fix yet, but I haven't really been looking either, I just stopped using the javascript compression to get around it for now. The site still loads well within my desires for speed so it's not a big issue, but it would be nice to be fixed.
This may be related to #22 but I've done a bit of digging and figured I'd throw it into its own issue. Please close/reassign as needed.
I've been trying to get this plugin to work with jekyll for a few hours now and have been able to track down the issue to something with compressing javascript, and subsequently with the exclusion not working. (As a note, this has taken a while as it appears that #33 is still present.)
I should note this only happens for production builds
JEKYLL_ENV=production be jekyll b
(with and without --watch or --incremental).I've already gone through and made sure to enable harmony:
If I run with
compress_javascript: false
the compression works just fine, however as soon as I allow for javascript to be compressed, I get the following error, with everything up to date as of today.jekyll 3.8.6 | Error: Unexpected token: operator (<)
There is no other information provided with this error. I'm currently only using the bootstrap.bundle.js, query-3.3.1.slim.min.js and respond.js for javascript files. I even tried to exclude all of them using an exclude for each file individually and the error seems to still happen, so it would appear that something is broken with the exclude or just in javascript processing in general currently.
I've tried excluding in both the following ways:
Ruby 2.6.3
The gems in this particular bundle are:
And _config.yml settings:
The text was updated successfully, but these errors were encountered: