Load more scripts using webpack

This commit is contained in:
Yukai Huang 2016-10-12 17:03:47 +08:00
parent 895bf98b03
commit 91266f1cad
5 changed files with 9 additions and 4 deletions

View File

@ -9,6 +9,7 @@
"build": "webpack --config webpack.production.js --progress --colors"
},
"dependencies": {
"Idle.Js": "github:shawnmclean/Idle.js",
"async": "^2.0.1",
"blueimp-md5": "^2.4.0",
"body-parser": "^1.15.2",
@ -88,6 +89,7 @@
"shortid": "2.2.6",
"socket.io": "1.5.0",
"socket.io-client": "^1.5.0",
"spin.js": "^2.3.2",
"sqlite3": "^3.1.6",
"store": "^1.3.20",
"string": "^3.3.1",

File diff suppressed because one or more lines are too long

View File

@ -20,10 +20,8 @@
<script src="<%- url %>/vendor/moment/min/moment-with-locales.js" defer></script>
<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
<% } %>
<script src="<%- url %>/vendor/Idle.Js/build/idle.min.js" defer></script>
<script src="<%- url %>/build/vendor.js" defer></script>
<!--codemirror-->
<script src="<%- url %>/vendor/codemirror-spell-checker/spell-checker.min.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-picker.js" defer></script>

View File

@ -203,7 +203,6 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/js-url/2.3.0/url.min.js" defer></script>
<% } else { %>
<script src="<%- url %>/vendor/velocity/velocity.min.js" defer></script>
<script src="<%- url %>/vendor/select2/select2.min.js" defer></script>
<script src="<%- url %>/vendor/moment/min/moment-with-locales.min.js" defer></script>
<% } %>
<script src="<%- url %>/build/locale.js" defer></script>

View File

@ -39,10 +39,14 @@ module.exports = {
"expose?filterXSS!xss",
"js-url",
"bootstrap",
"expose?Spinner!spin.js",
"script!Idle.Js",
"expose?Viz!viz.js",
"expose?ListPagination!list.pagination.js/dist/list.pagination.js",
path.join(__dirname, 'public/vendor/codemirror/codemirror.min.js'),
path.join(__dirname, 'public/vendor/select2/select2.min.js'),
path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.js'),
path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
path.join(__dirname, 'public/vendor/ot/ot.min.js')
]
@ -96,7 +100,9 @@ module.exports = {
include: [
path.join(__dirname, 'public/vendor/codemirror/codemirror.min.js'),
path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
path.join(__dirname, 'public/vendor/select2/select2.min.js'),
path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.js'),
path.join(__dirname, 'public/vendor/ot/ot.min.js')
]
}]