Created
February 20, 2016 22:57
-
-
Save jdwfly/6aa91c2faec0d5b4c72e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
proxies: null, | |
paths: { | |
html : { | |
src: ['app/**/*.html'], | |
dest: "www/build" | |
}, | |
sass: { | |
src: ['app/theme/app.+(ios|md).scss'], | |
dest: 'www/build/css', | |
include: [ | |
'node_modules/ionic-framework', | |
'node_modules/ionicons/dist/scss' | |
] | |
}, | |
fonts: { | |
src: ['node_modules/ionic-framework/fonts/**/*.+(ttf|woff|woff2)'], | |
dest: "www/build/fonts" | |
}, | |
img: { | |
src: ['app/img/*.png'], | |
dest: "www/build/img" | |
}, | |
watch: { | |
sass: ['app/**/*.scss'], | |
html: ['app/**/*.html'], | |
livereload: [ | |
'www/build/**/*.html', | |
'www/build/**/*.js', | |
'www/build/**/*.css' | |
] | |
} | |
}, | |
autoPrefixerOptions: { | |
browsers: [ | |
'last 2 versions', | |
'iOS >= 7', | |
'Android >= 4', | |
'Explorer >= 10', | |
'ExplorerMobile >= 11' | |
], | |
cascade: false | |
}, | |
// 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) { | |
//console.log('beforeServe'); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the part I added, but it doesn't seem to run during ionic serve and copy the files over.