summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2016-10-09 17:55:07 +0800
committerYukai Huang2016-10-09 17:55:07 +0800
commit28858288fbc386350022bc4830775d21af217c11 (patch)
treeb096ceb2d9c07b403ce9a3f1580392892d4b55c8
parent3e2905be13551a0cceeb18e72242be891db10db7 (diff)
Fix more js errors
-rw-r--r--public/js/extra.js1
-rw-r--r--webpack.config.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index f449bed1..d4a6c5cd 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -1,5 +1,6 @@
var hljs = require('highlight.js');
var PDFObject = require('pdfobject');
+var S = require('string');
//auto update last change
var createtime = null;
diff --git a/webpack.config.js b/webpack.config.js
index 85e3a005..cad356fb 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -15,7 +15,8 @@ module.exports = {
emojify: "emojify.js",
io: "socket.io-client",
LZString: "lz-string",
- key: "keymaster"
+ key: "keymaster",
+ Viz: "viz.js"
}),
new webpack.DefinePlugin({
"require.specified": "require.resolve"