PhantomJS require() a relative path

后端 未结 5 527
情书的邮戳
情书的邮戳 2021-02-04 03:07

In a PhantomJS script I would like to load a custom module but it seems relative paths do not works in PhantomJS ?

script.js:

var foo = require(\'./scrip         


        
5条回答
  •  感情败类
    2021-02-04 04:10

    Which PhantomJS version are you running? Support for user provided modules was added in 1.7.

提交回复
热议问题