mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
website: Load all prism languages (#1004)
This is server side so we don't need to worry about bundle size anyway. It'll be best if every language is available to use, so we can't forget about adding one.
This commit is contained in:
parent
8d87f80722
commit
e1ec23e64d
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ const path = require('path')
|
|||
// I think this is the way to add Prism components that it doesn't include
|
||||
// in the default build?
|
||||
global.Prism = Prism
|
||||
require('prismjs/components/prism-markup-templating')
|
||||
require('prismjs/components/prism-php')
|
||||
// the / is needed to force it to resolve to the directory
|
||||
require('prismjs/components/')()
|
||||
delete global.Prism
|
||||
|
||||
const unhighlightedCodeRx = /<pre><code class="(.*)?">([\s\S]*?)<\/code><\/pre>/igm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue