diff options
author | Yukai Huang | 2016-10-08 20:02:30 +0800 |
---|---|---|
committer | Yukai Huang | 2016-10-08 20:02:30 +0800 |
commit | 963a435ae1e9248b42b4665acf106dcffa549678 (patch) | |
tree | 99446e874b353d4f373df33e14582187aaa44578 /webpack.config.js | |
parent | 0be342c44d5b6287c67922758f076e7897f6c3a8 (diff) |
Resolve dependency module requiring
* es5 style module exports
* remove script tag require
* webpack config ProvidePlugin
Note that this commit only fix JavaScript module loading runtime error.
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 01adea94..af001444 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,7 +12,12 @@ module.exports = { "window.jQuery": "jquery", Visibility: "visibilityjs", Cookies: "js-cookie", - CodeMirror: "codemirror" + CodeMirror: "codemirror", + emojify: "emojify.js", + ot: "ot", + io: "socket.io-client", + LZString: "lz-string", + key: "keymaster" }), new webpack.DefinePlugin({ "require.specified": "require.resolve" |