Load gist-embed without script-loader

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-06-06 18:10:38 +02:00
parent 1150c72fa7
commit fddd97391b
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 1 additions and 4 deletions

View file

@ -19,6 +19,7 @@ import Plugin from 'markdown-it-regexp'
import mermaid from 'mermaid'
import handlebars from 'handlebars'
import 'gist-embed'
require('prismjs/themes/prism.css')
require('prismjs/components/prism-wiki')

View file

@ -250,7 +250,6 @@ module.exports = {
'expose-loader?exposes=moment!moment',
'expose-loader?exposes=hljs!highlight.js',
'expose-loader?exposes=emojify!emojify.js',
'script-loader!gist-embed',
'expose-loader?exposes=LZString!lz-string',
'flowchart.js',
'js-sequence-diagrams',
@ -284,7 +283,6 @@ module.exports = {
'expose-loader?exposes=moment!moment',
'expose-loader?exposes=hljs!highlight.js',
'expose-loader?exposes=emojify!emojify.js',
'script-loader!gist-embed',
'flowchart.js',
'js-sequence-diagrams',
'expose-loader?exposes=Viz!viz.js',
@ -320,7 +318,6 @@ module.exports = {
'expose-loader?exposes=moment!moment',
'expose-loader?exposes=hljs!highlight.js',
'expose-loader?exposes=emojify!emojify.js',
'script-loader!gist-embed',
'flowchart.js',
'js-sequence-diagrams',
'expose-loader?exposes=Viz!viz.js',
@ -341,7 +338,6 @@ module.exports = {
modules: ['node_modules'],
extensions: ['.js'],
alias: {
'gist-embed': path.join(__dirname, 'node_modules/gist-embed/gist-embed.min.js'),
'bootstrap-tooltip': path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.js'),
'reveal-markdown': path.join(__dirname, 'public/js/reveal-markdown.js'),
abcjs: path.join(__dirname, 'public/vendor/abcjs_basic_3.1.1-min.js'),