diff options
author | Yukai Huang | 2016-10-14 09:56:19 +0800 |
---|---|---|
committer | Yukai Huang | 2016-10-14 09:56:19 +0800 |
commit | 4c1109b70bd31090e410850dee0a39e6edf1a19a (patch) | |
tree | 0b8fd738947eb8bdc24f3557a8896b23850286d4 | |
parent | 3d1bc8a8cbd49a35e3e3bdb1d5e3f4f0eeb4e171 (diff) |
Move gist-embed to CDN
Diffstat (limited to '')
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | public/js/public.js | 2 | ||||
-rw-r--r-- | public/views/foot.ejs | 1 | ||||
-rw-r--r-- | public/views/pretty.ejs | 1 | ||||
-rw-r--r-- | public/views/slide.ejs | 1 | ||||
-rw-r--r-- | webpackBaseConfig.js | 7 |
6 files changed, 4 insertions, 9 deletions
diff --git a/package.json b/package.json index 1e693483..80a0e22b 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "file-saver": "^1.3.3", "flowchart.js": "^1.6.3", "formidable": "^1.0.17", - "gist-embed": "github:yukaii/gist-embed", "handlebars": "^4.0.5", "helmet": "^2.3.0", "i18n": "^0.8.3", diff --git a/public/js/public.js b/public/js/public.js index af8c0924..f83ef41f 100644 --- a/public/js/public.js +++ b/public/js/public.js @@ -5,9 +5,7 @@ require('prismjs/themes/prism.css'); require('highlight.js/styles/github-gist.css'); /* other vendors plugin */ -require('gist-embed'); require('string'); -require('highlight.js'); require('prismjs'); require('prismjs/components/prism-wiki'); require('to-markdown'); diff --git a/public/views/foot.ejs b/public/views/foot.ejs index f1bc0c5d..e2af5b0e 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -24,6 +24,7 @@ <script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.5.0/socket.io.min.js" defer></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js" defer></script> +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/gist-embed/2.5/gist-embed.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script> <%- include build/index-scripts %> <script src="<%- url %>/js/google-drive-upload.js" defer></script> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 8968fec3..4f6e7a4d 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -103,6 +103,7 @@ <script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" defer></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js" defer></script> +<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/gist-embed/2.5/gist-embed.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script> diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 089ced37..f7e17eea 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -105,6 +105,7 @@ <script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js" defer></script> + <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/gist-embed/2.5/gist-embed.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/viz.js/1.3.0/viz.js" defer></script> <%- include build/slide-scripts %> diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 65afb48b..a39f8384 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -81,7 +81,6 @@ module.exports = { locale: path.join(__dirname, 'public/js/locale.js'), vendor: [ "imports?$=jquery!jquery-mousewheel", - "script!gist-embed", "expose?filterXSS!xss", "js-url", "expose?Spinner!spin.js", @@ -160,11 +159,7 @@ module.exports = { }, { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" - }], - - noParse: [ - "gist-embed" - ] + }] }, node: { |