mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05: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
|
@ -131,6 +131,7 @@
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
"less": "^2.7.1",
|
"less": "^2.7.1",
|
||||||
"less-loader": "^2.2.3",
|
"less-loader": "^2.2.3",
|
||||||
|
"script-loader": "^0.7.0",
|
||||||
"style-loader": "^0.13.1",
|
"style-loader": "^0.13.1",
|
||||||
"url-loader": "^0.5.7",
|
"url-loader": "^0.5.7",
|
||||||
"webpack": "^1.13.2"
|
"webpack": "^1.13.2"
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
<script src="<%- url %>/vendor/Idle.Js/build/idle.min.js" defer></script>
|
<script src="<%- url %>/vendor/Idle.Js/build/idle.min.js" defer></script>
|
||||||
<script src="<%- url %>/build/vendor.js" defer></script>
|
<script src="<%- url %>/build/vendor.js" defer></script>
|
||||||
<!--codemirror-->
|
<!--codemirror-->
|
||||||
<script src="<%- url %>/vendor/codemirror/codemirror.min.js" defer></script>
|
|
||||||
<script src="<%- url %>/vendor/inlineAttachment/inline-attachment.js" defer></script>
|
|
||||||
<script src="<%- url %>/vendor/inlineAttachment/codemirror.inline-attachment.js" defer></script>
|
|
||||||
<script src="<%- url %>/vendor/codemirror-spell-checker/spell-checker.min.js" defer></script>
|
<script src="<%- url %>/vendor/codemirror-spell-checker/spell-checker.min.js" defer></script>
|
||||||
<script src="<%- url %>/vendor/ot/ot.min.js" defer></script>
|
|
||||||
<script src="<%- url %>/build/index.js" defer></script>
|
<script src="<%- url %>/build/index.js" defer></script>
|
||||||
<script src="<%- url %>/js/google-drive-upload.js" defer></script>
|
<script src="<%- url %>/js/google-drive-upload.js" defer></script>
|
||||||
<script src="<%- url %>/js/google-drive-picker.js" defer></script>
|
<script src="<%- url %>/js/google-drive-picker.js" defer></script>
|
||||||
|
|
|
@ -39,7 +39,11 @@ module.exports = {
|
||||||
"expose?filterXSS!xss",
|
"expose?filterXSS!xss",
|
||||||
"js-url",
|
"js-url",
|
||||||
"bootstrap",
|
"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+)?$/,
|
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
|
||||||
loader: "url?limit=10000&mimetype=image/svg+xml"
|
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…
Reference in a new issue