Browse Source

Style tweak

Dan Abramov 9 years ago
parent
commit
1622e4e5a4
1 changed files with 3 additions and 4 deletions
  1. 3 4
      index.js

+ 3 - 4
index.js

@@ -2,13 +2,12 @@ var Prism = require('prismjs');
 var cheerio = require('cheerio');
 var cheerio = require('cheerio');
 var path = require('path');
 var path = require('path');
 
 
-var cssFile = require.resolve('prismjs/themes/prism.css');
-var cssDirectory = path.dirname(cssFile);
+var prismCSS = require.resolve('prismjs/themes/prism.css');
 
 
 module.exports = {
 module.exports = {
   book: {
   book: {
-    assets: cssDirectory,
-    css: [path.basename(cssFile)]
+    assets: path.dirname(prismCSS),
+    css: [path.basename(prismCSS)]
   },
   },
   hooks: {
   hooks: {
     page: function (page) {
     page: function (page) {