Load inline-attachment without script-loader

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-06-04 22:02:47 +02:00
parent cf867daf99
commit 2515ad962b
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 3 additions and 6 deletions

View file

@ -34,6 +34,9 @@ import 'codemirror/addon/fold/xml-fold.js'
import 'codemirror/addon/merge/merge.js'
import '../../../vendor/codemirror-spell-checker/spell-checker.min.js'
import '../../../vendor/inlineAttachment/inline-attachment'
import '../../../vendor/inlineAttachment/codemirror.inline-attachment'
import * as utils from './utils'
import config from './config'
import statusBarTemplate from './statusbar.html'

View file

@ -214,9 +214,7 @@ module.exports = {
index: [
'babel-polyfill',
'expose-loader?exposes=LZString!lz-string',
'script-loader!inlineAttachment',
'script-loader!jqueryTextcomplete',
'script-loader!codemirrorInlineAttachment',
'script-loader!ot',
'flowchart.js',
'js-sequence-diagrams',
@ -259,9 +257,7 @@ module.exports = {
'expose-loader?exposes=emojify!emojify.js',
'script-loader!gist-embed',
'expose-loader?exposes=LZString!lz-string',
'script-loader!inlineAttachment',
'script-loader!jqueryTextcomplete',
'script-loader!codemirrorInlineAttachment',
'script-loader!ot',
'flowchart.js',
'js-sequence-diagrams',
@ -356,9 +352,7 @@ module.exports = {
modules: ['node_modules'],
extensions: ['.js'],
alias: {
inlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
jqueryTextcomplete: path.join(__dirname, 'public/vendor/jquery-textcomplete/jquery.textcomplete.js'),
codemirrorInlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
ot: path.join(__dirname, 'public/vendor/ot/ot.min.js'),
mermaid: path.join(__dirname, 'node_modules/mermaid/dist/mermaid.min.js'),
handlebars: path.join(__dirname, 'node_modules/handlebars/dist/handlebars.min.js'),