Skip to content

Conversation

@RunDevelopment
Copy link
Member

@RunDevelopment RunDevelopment commented Jun 2, 2019

This changes the behavior of how the Autoloader handles data-autoloader-path attributes and guesses the components path.

  • The data-autoloader-path will now set the languages_path no matter the content.
    This fixes Autoloader could work using a CDN #1424.
  • If the source of the script matches /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)js$/i, then we will now correctly guess the components path.
  • The case where we check for a Prism bundle can now handle files which end with .min.js.

The example in #1924 can be simplified after a new version with this change is released. Edit: Done.

@RunDevelopment RunDevelopment changed the title Autoloader: Improved component path geussing Autoloader: Improved component path guessing Jun 2, 2019
@RunDevelopment RunDevelopment force-pushed the autoloader-lang-path-declare branch from 528a3ac to 0fe53e0 Compare June 12, 2019 14:23
@RunDevelopment RunDevelopment added this to the 1.17.0 milestone Jul 17, 2019
@RunDevelopment RunDevelopment merged commit 452d5c7 into PrismJS:master Jul 21, 2019
@RunDevelopment RunDevelopment deleted the autoloader-lang-path-declare branch July 21, 2019 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoloader could work using a CDN

2 participants