Last active
December 4, 2020 09:30
-
-
Save Dragod/58a24a58f88f848a7b0dabdc9f21d210 to your computer and use it in GitHub Desktop.
node build unity skin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Script to build unity skins via node | |
const execSync = require('child_process').execSync; | |
// Default value `amazon-site-lite` if no args provided via CLI. | |
const skin = process.argv[2] || 'amazon-site-lite'; | |
// Run the node-sass | |
execSync('node-sass sass/skins/' + skin + '/' + skin + '.scss > assets/' + skin + '/css/' + skin + '.css', { stdio: [0, 1, 2] }); | |
// Print message for task completed | |
execSync("echo Build skin: " + skin + " completed", { stdio: [0, 1, 2] }); | |
// Run this on command line to build the skin | |
// npm run css:skin -- ioc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment