diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-05-22 15:10:10 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-05-22 15:10:10 +0200 |
commit | dffbb673eabb134ce05839221d46580c43be0216 (patch) | |
tree | dc9ec2586d68a7f36ec179cc2373b187c37c390c /bin | |
parent | 04e70b240eca98044921d1fc553a0544bbfcf4d7 (diff) | |
download | qtlocation-mapboxgl-dffbb673eabb134ce05839221d46580c43be0216.tar.gz |
read style filename from gyp file
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-style.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/build-style.js b/bin/build-style.js index 380c134349..bd86d5bda5 100755 --- a/bin/build-style.js +++ b/bin/build-style.js @@ -1,10 +1,13 @@ #!/usr/bin/env node 'use strict'; +var path = require('path'); + var lazy_update = require('./lazy-update'); var name = 'style'; -var data = JSON.stringify(require('./style')); +var data = JSON.stringify(require(path.join(process.cwd(), process.argv[2]))); + var length = data.length; |