Skip to content

Commit

Permalink
解决最新版本npm会将依赖扁平化,Mathjax路径时效
Browse files Browse the repository at this point in the history
  • Loading branch information
zl810881283 committed Apr 24, 2016
1 parent c8c353e commit 8425493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports.start = function(port, pptDir, host, argvObj) {
function startApp(port, dir, host, argvObj) {
host = host || '0.0.0.0';
var staticDir = path.normalize(path.join(__dirname, '../assets')) + path.sep;
var nodeModules = path.normalize(path.join(__dirname, '../node_modules')) + path.sep;
var nodeModules = path.normalize(path.join(require.resolve('mathjax/package.json'),'../..')) + path.sep;
var pptDir = dir;

var now = Date.now();
Expand Down

0 comments on commit 8425493

Please sign in to comment.