Skip to content

Instantly share code, notes, and snippets.

@anjum121
Created May 29, 2017 15:35
Show Gist options
  • Select an option

  • Save anjum121/288dc87e2d1ef32821f458e5c2ca6880 to your computer and use it in GitHub Desktop.

Select an option

Save anjum121/288dc87e2d1ef32821f458e5c2ca6880 to your computer and use it in GitHub Desktop.
/**
* 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