mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Update webpack and slide resource loading to reduce pack size
This commit is contained in:
parent
47d5efb29e
commit
c59b4cb883
2 changed files with 6 additions and 2 deletions
|
@ -116,7 +116,7 @@ module.exports = {
|
|||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'public/views/includes/scripts.ejs',
|
||||
chunks: ['common', 'slide-pack'],
|
||||
chunks: ['slide-pack'],
|
||||
filename: path.join(__dirname, 'public/views/build/slide-pack-scripts.ejs'),
|
||||
inject: false
|
||||
}),
|
||||
|
@ -283,6 +283,7 @@ module.exports = {
|
|||
path.join(__dirname, 'public/js/pretty.js')
|
||||
],
|
||||
slide: [
|
||||
"bootstrap-tooltip",
|
||||
"expose?filterXSS!xss",
|
||||
"flowchart.js",
|
||||
"js-sequence-diagrams",
|
||||
|
@ -301,6 +302,10 @@ module.exports = {
|
|||
path.join(__dirname, 'public/vendor/bootstrap/tooltip.min.css')
|
||||
],
|
||||
"slide-pack": [
|
||||
"expose?jQuery!expose?$!jquery",
|
||||
"velocity-animate",
|
||||
"imports?$=jquery!jquery-mousewheel",
|
||||
"bootstrap-tooltip",
|
||||
"expose?jsyaml!js-yaml",
|
||||
"script!mermaid",
|
||||
"expose?moment!moment",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue