mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Load customized vendor script through script-loader
This commit is contained in:
parent
2e929879ad
commit
02eef3f68a
3 changed files with 15 additions and 5 deletions
|
@ -39,7 +39,11 @@ module.exports = {
|
|||
"expose?filterXSS!xss",
|
||||
"js-url",
|
||||
"bootstrap",
|
||||
"expose?ListPagination!list.pagination.js/dist/list.pagination.js"
|
||||
"expose?ListPagination!list.pagination.js/dist/list.pagination.js",
|
||||
path.join(__dirname, 'public/vendor/codemirror/codemirror.min.js'),
|
||||
path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
|
||||
path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
|
||||
path.join(__dirname, 'public/vendor/ot/ot.min.js')
|
||||
]
|
||||
},
|
||||
|
||||
|
@ -85,6 +89,15 @@ module.exports = {
|
|||
}, {
|
||||
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
||||
loader: "url?limit=10000&mimetype=image/svg+xml"
|
||||
}, {
|
||||
test: /\.js/,
|
||||
loader: "script-loader",
|
||||
include: [
|
||||
path.join(__dirname, 'public/vendor/codemirror/codemirror.min.js'),
|
||||
path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
|
||||
path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
|
||||
path.join(__dirname, 'public/vendor/ot/ot.min.js')
|
||||
]
|
||||
}]
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue