Skip to content

Instantly share code, notes, and snippets.

@pavei
Created September 7, 2017 01:39
Show Gist options
  • Save pavei/32a7d52d9004a33e306b4748ebd2e123 to your computer and use it in GitHub Desktop.
Save pavei/32a7d52d9004a33e306b4748ebd2e123 to your computer and use it in GitHub Desktop.
// this is a custom dictionary to make it easy to extend/override
// provide a name for an entry, it can be anything such as 'copyAssets' or 'copyFonts'
// then provide an object with a `src` array of globs and a `dest` string
module.exports = {
copyAssets: {
src: ['{{SRC}}/assets/**/*'],
dest: '{{WWW}}/assets'
},
copyIndexContent: {
src: ['{{SRC}}/index.html', '{{SRC}}/manifest.json', '{{SRC}}/service-worker.js'],
dest: '{{WWW}}'
},
copyFonts: {
src: ['{{ROOT}}/node_modules/ionicons/dist/fonts/**/*', '{{ROOT}}/node_modules/ionic-angular/fonts/**/*'],
dest: '{{WWW}}/assets/fonts'
},
copyPolyfills: {
src: ['{{ROOT}}/node_modules/ionic-angular/polyfills/polyfills.js'],
dest: '{{BUILD}}'
},
copySwToolbox: {
src: ['{{ROOT}}/node_modules/sw-toolbox/sw-toolbox.js'],
dest: '{{BUILD}}'
},
copyLibs: {
src: ['{{SRC}}/libs/**/*'],
dest: '{{WWW}}/libs'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment