1

I'm developing an app and there'll be a few variations. Same app - different icons, some app pages and logic - about 95% same.

Is it possible to include just the necessary files at build time?

dashman
  • 2,858
  • 3
  • 29
  • 51

1 Answers1

0

For this I would probably use gulp/grunt and have some custom build time logic. This would ensure minimum redundancy in the final app.

So you might use gulp-copy and then have a build_config_1 job which includes:

return gulp.src(sourceFiles)
  .pipe($.copy(outputPath, options));

where var sourceFiles = commonFiles + thisConfig and thisConfig is specific for this configuration.

You could alternatively have 1 build task and then specify the configuration as a command argument - see here.

Community
  • 1
  • 1
George Edwards
  • 8,979
  • 20
  • 78
  • 161