diff options
author | Wu Cheng-Han | 2016-12-24 17:02:03 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-12-24 17:02:03 +0800 |
commit | aff206ca9592f194cd41a36c63cba0a3416fe638 (patch) | |
tree | 9ec21c908df395471bcddff10ea34088f6a760a3 | |
parent | 8cf849e825e96510c064479bbf89b595e6728511 (diff) |
Fix js-url not import correctly
-rw-r--r-- | public/js/index.js | 1 | ||||
-rw-r--r-- | webpackBaseConfig.js | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/public/js/index.js b/public/js/index.js index 96580fe3..e0f6bd6b 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -11,7 +11,6 @@ require('highlight.js/styles/github-gist.css'); var toMarkdown = require('to-markdown'); var saveAs = require('file-saver').saveAs; -var url = require('js-url'); var randomColor = require('randomcolor'); var _ = require("lodash"); diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 400db14b..496afce4 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -172,12 +172,12 @@ module.exports = { "script!listPagnation", "expose?select2!select2", "expose?moment!moment", - "js-url", + "script!js-url", path.join(__dirname, 'public/js/cover.js') ], index: [ "script!jquery-ui-resizable", - "js-url", + "script!js-url", "expose?filterXSS!xss", "script!Idle.Js", "expose?LZString!lz-string", @@ -227,7 +227,7 @@ module.exports = { "expose?jsyaml!js-yaml", "script!mermaid", "expose?moment!moment", - "js-url", + "script!js-url", "script!handlebars", "expose?hljs!highlight.js", "expose?emojify!emojify.js", |