Skip to content

Instantly share code, notes, and snippets.

@jdwfly
Created February 20, 2016 22:57
Show Gist options
  • Save jdwfly/6aa91c2faec0d5b4c72e to your computer and use it in GitHub Desktop.
Save jdwfly/6aa91c2faec0d5b4c72e to your computer and use it in GitHub Desktop.
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');
}
}
};
@jdwfly
Copy link
Author

jdwfly commented Feb 20, 2016

This is the part I added, but it doesn't seem to run during ionic serve and copy the files over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment