Skip to content

Commit aff206c

Browse files
committed
Fix js-url not import correctly
1 parent 8cf849e commit aff206c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

public/js/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ require('highlight.js/styles/github-gist.css');
1111
var toMarkdown = require('to-markdown');
1212

1313
var saveAs = require('file-saver').saveAs;
14-
var url = require('js-url');
1514
var randomColor = require('randomcolor');
1615

1716
var _ = require("lodash");

webpackBaseConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ module.exports = {
172172
"script!listPagnation",
173173
"expose?select2!select2",
174174
"expose?moment!moment",
175-
"js-url",
175+
"script!js-url",
176176
path.join(__dirname, 'public/js/cover.js')
177177
],
178178
index: [
179179
"script!jquery-ui-resizable",
180-
"js-url",
180+
"script!js-url",
181181
"expose?filterXSS!xss",
182182
"script!Idle.Js",
183183
"expose?LZString!lz-string",
@@ -227,7 +227,7 @@ module.exports = {
227227
"expose?jsyaml!js-yaml",
228228
"script!mermaid",
229229
"expose?moment!moment",
230-
"js-url",
230+
"script!js-url",
231231
"script!handlebars",
232232
"expose?hljs!highlight.js",
233233
"expose?emojify!emojify.js",

0 commit comments

Comments
 (0)