mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 07:32:13 +08:00
tech(): updated phantomjs npm package to use phantomjs-prebuilt
This commit is contained in:
@ -4,12 +4,7 @@ module.exports = function(config,grunt) {
|
||||
grunt.registerTask('phantomjs', 'Copy phantomjs binary from node', function() {
|
||||
|
||||
var dest = './vendor/phantomjs/phantomjs';
|
||||
var confDir = './node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/'
|
||||
|
||||
if (!grunt.file.exists(confDir)) {
|
||||
// npm 3 or npm 2 with dedupe
|
||||
confDir = './node_modules/phantomjs/lib/';
|
||||
}
|
||||
var confDir = './node_modules/phantomjs-prebuilt/lib/';
|
||||
|
||||
if (!grunt.file.exists(dest)){
|
||||
|
||||
|
Reference in New Issue
Block a user