UNPKG

880 BJavaScriptView Raw
1// this is a custom dictionary to make it easy to extend/override
2// provide a name for an entry, it can be anything such as 'copyAssets' or 'copyFonts'
3// then provide an object with a `src` array of globs and a `dest` string
4module.exports = {
5 copyAssets: {
6 src: ['{{SRC}}/assets/**/*'],
7 dest: '{{WWW}}/assets'
8 },
9 copyIndexContent: {
10 src: ['{{SRC}}/index.html', '{{SRC}}/manifest.json', '{{SRC}}/service-worker.js'],
11 dest: '{{WWW}}'
12 },
13 copyFonts: {
14 src: ['{{ROOT}}/node_modules/ionicons/dist/fonts/**/*', '{{ROOT}}/node_modules/ionic-angular/fonts/**/*'],
15 dest: '{{WWW}}/assets/fonts'
16 },
17 copyPolyfills: {
18 src: [`{{ROOT}}/node_modules/ionic-angular/polyfills/${process.env.IONIC_POLYFILL_FILE_NAME}`],
19 dest: '{{BUILD}}'
20 },
21 copySwToolbox: {
22 src: ['{{ROOT}}/node_modules/sw-toolbox/sw-toolbox.js'],
23 dest: '{{BUILD}}'
24 }
25}