webpack中无法使用phantomjs
这里有段很基础的代码,
运行phantomjs main.js能成功生成test.png图,
webpack中把main.js设为了入口,配置了start脚本,同样的代码用npm start执行,报错:…create() is not a functionE)
这里有段很基础的代码,
运行phantomjs main.js能成功生成test.png图,
webpack中把main.js设为了入口,配置了start脚本,同样的代码用npm start执行,报错:…create() is not a functionE)