/** | |
* Created by anjum on 29/05/17. | |
*/ | |
const fs = require('fs'); | |
const execSync = require('child_process').execSync; | |
module.exports = function(context) { | |
console.log(‘Copying angular 2 "./www" folder.’); | |
const basePath = context.opts.projectRoot; | |
const baseWWW = basePath + '/www'; | |
console.log(execSync( | |
"ng build --target=production --environment=prod --output-path cordova/www/ --base-href .", | |
{ | |
maxBuffer: 1024*1024, | |
cwd: basePath + '/..' | |
}).toString('utf8') | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment