diff --git a/package.json b/package.json
index e0dd95ba8..ad6ae660c 100644
--- a/package.json
+++ b/package.json
@@ -131,6 +131,7 @@
"json-loader": "^0.5.4",
"less": "^2.7.1",
"less-loader": "^2.2.3",
+ "script-loader": "^0.7.0",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"webpack": "^1.13.2"
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
index de714bbe2..55be9e54b 100644
--- a/public/views/foot.ejs
+++ b/public/views/foot.ejs
@@ -23,11 +23,7 @@
-
-
-
-
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js
index 8f93baeec..62101c3a3 100644
--- a/webpackBaseConfig.js
+++ b/webpackBaseConfig.js
@@ -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')
+ ]
}]
},