1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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 path = require('path');
- var fork = require('child_process').fork;
- // npm generates non-js .bin files for windows, so use gulp directly
- fork(path.resolve('./node_modules/gulp/bin/gulp.js'), ['watch']);
- }
- },
- 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
- }
- };
|