-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathionic.config.js
50 lines (46 loc) · 1.32 KB
/
ionic.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
proxies: null,
// hooks execute before or after all project-related Ionic commands
// (so not for start, docs, but serve, run, etc.) and take in the arguments
// passed to the command as a parameter
//
// The format is 'before' or 'after' + commandName (uppercased)
// ex: beforeServe, afterRun, beforePrepare, etc.
hooks: {
// beforeServe: function(argv) {
// var spawn = require('child_process').spawn;
// var gulpWatch = spawn('gulp', ['watch']);
// gulpWatch.stdout.on('data', function(data) {
// console.log(data);
// });
// gulpWatch.stderr.on('data', function(data) {
// console.log('gulp watch error: ' + data);
// });
// }
},
paths: {
wwwDir: 'www',
buildDir: 'build',
buildJSDir: 'js',
buildCSSDir: 'css',
buildFontsDir: 'fonts',
appDir: 'app',
appSrcModule: 'app.ts',
appBuildBundle: 'app.bundle.js',
appSassSrc: ['app.ios.scss', 'app.md.scss'],
appSassWatch: '**/*.scss',
ionicDir: 'node_modules/ionic-framework',
ionicSassDir: 'node_modules/ionic-framework',
ionicFontFiles: 'fonts/**/*.ttf'
},
autoPrefixerOpts: {
browsers: [
'last 2 versions',
'iOS >= 7',
'Android >= 4',
'Explorer >= 10',
'ExplorerMobile >= 11'
],
cascade: false
}
};