diff --git a/bin/build-style.js b/bin/build-style.js index 380c13434..bd86d5bda 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; diff --git a/llmr.gyp b/llmr.gyp index 369a21658..4c2086242 100644 --- a/llmr.gyp +++ b/llmr.gyp @@ -31,13 +31,13 @@ { 'action_name': 'Build Stylesheet', 'inputs': [ - 'bin/style.js' + 'bin/style.js', ], 'outputs': [ 'include/llmr/style/resources.hpp', 'src/style/resources.cpp' ], - 'action': ['<@(node)', 'bin/build-style.js'] + 'action': ['<@(node)', 'bin/build-style.js', '<@(_inputs)'] } ], 'direct_dependent_settings': {