Created
May 29, 2017 15:35
-
-
Save anjum121/288dc87e2d1ef32821f458e5c2ca6880 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * 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