diff options
author | Max Wu | 2016-11-03 14:17:10 +0800 |
---|---|---|
committer | GitHub | 2016-11-03 14:17:10 +0800 |
commit | 11faadb6842cacce7572526f533cb9351fc5f562 (patch) | |
tree | f466289e42547a163058a29f4e573061b3fb8abf /public/js | |
parent | 734d475c0e2dc467a657d350d8a37ec8aa800da7 (diff) | |
parent | 689b1dc4d6f438a6e58ee354d71ee4f2def11eae (diff) |
Merge pull request #242 from Yukaii/webpack-stylesheet
Use webpack to bundle stylesheet
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/cover.js | 3 | ||||
-rw-r--r-- | public/js/extra.js | 2 | ||||
-rw-r--r-- | public/js/htmlExport.js | 5 | ||||
-rw-r--r-- | public/js/index.js | 7 | ||||
-rw-r--r-- | public/js/pretty.js | 4 | ||||
-rw-r--r-- | public/js/slide.js | 3 |
6 files changed, 22 insertions, 2 deletions
diff --git a/public/js/cover.js b/public/js/cover.js index c02f6c81..6bc55dd9 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -1,5 +1,8 @@ require('./locale'); +require('../css/cover.css'); +require('../css/site.css'); + var common = require('./common'); var checkIfAuth = common.checkIfAuth; var urlpath = common.urlpath; diff --git a/public/js/extra.js b/public/js/extra.js index 01363886..81dd4a28 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -588,7 +588,7 @@ function exportToHTML(view) { var tocAffix = $('#ui-toc-affix').clone(); tocAffix.find('*').removeClass('active').find("a[href^='#'][smoothhashscroll]").removeAttr('smoothhashscroll'); //generate html via template - $.get(serverurl + '/css/html.min.css', function (css) { + $.get(serverurl + '/build/html.min.css', function (css) { $.get(serverurl + '/views/html.hbs', function (data) { var template = Handlebars.compile(data); var context = { diff --git a/public/js/htmlExport.js b/public/js/htmlExport.js new file mode 100644 index 00000000..e9fc41c6 --- /dev/null +++ b/public/js/htmlExport.js @@ -0,0 +1,5 @@ +require('../css/github-extract.css'); +require('../css/markdown.css'); +require('../css/extra.css'); +require('../css/slide-preview.css'); +require('../css/site.css'); diff --git a/public/js/index.js b/public/js/index.js index bb2a31f6..9c77ba8d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1,6 +1,11 @@ /* jquery and jquery plugins */ require('../vendor/showup/showup'); +require('../css/index.css'); +require('../css/extra.css'); +require('../css/slide-preview.css'); +require('../css/site.css'); + var toMarkdown = require('to-markdown'); var saveAs = require('file-saver').saveAs; @@ -2306,7 +2311,7 @@ socket.on('delete', function () { saveHistory(newnotehistory); location.href = serverurl; }); - } + } }); var retryTimer = null; socket.on('maintenance', function () { diff --git a/public/js/pretty.js b/public/js/pretty.js index 59403586..f7d31902 100644 --- a/public/js/pretty.js +++ b/public/js/pretty.js @@ -1,3 +1,7 @@ +require('../css/extra.css'); +require('../css/slide-preview.css'); +require('../css/site.css'); + /* other vendors plugin */ var S = require('string'); diff --git a/public/js/slide.js b/public/js/slide.js index 16ea6b8f..b9521e64 100644 --- a/public/js/slide.js +++ b/public/js/slide.js @@ -1,3 +1,6 @@ +require('../css/extra.css'); +require('../css/site.css'); +require('../css/slide.css'); /* other vendors plugin */ var S = require('string'); |