mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-12 15:01:28 +00:00
Load inline-attachment without script-loader
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
cf867daf99
commit
2515ad962b
2 changed files with 3 additions and 6 deletions
|
@ -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'
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue