Created
November 24, 2015 03:00
-
-
Save kijanawoodard/9c5a89bb96419b98ba33 to your computer and use it in GitHub Desktop.
aurelia bundle config
This file contains hidden or 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
var gulp = require('gulp'); | |
var bundler = require('aurelia-bundler'); | |
var paths = require('../paths'); | |
var config = { | |
force: true, | |
packagePath: '.', | |
bundles: { | |
"app/dist/app-build": { | |
includes: [ | |
'*', | |
'resources/*', | |
'components/*', | |
'**/*.html!text', | |
'**/*.css!text', | |
'text', | |
'aurelia-bootstrapper', | |
'aurelia-fetch-client', | |
'aurelia-router', | |
'aurelia-animator-css', | |
'npm:aurelia-templating-binding', | |
'npm:aurelia-templating-resources', | |
'npm:aurelia-templating-router', | |
'npm:aurelia-loader-default', | |
'npm:aurelia-history-browser', | |
'npm:aurelia-logging-console' | |
], | |
options: { | |
inject: true, | |
minify: true | |
} | |
} | |
} | |
}; | |
gulp.task('bundle', function() { | |
return bundler.bundle(config); | |
}); | |
gulp.task('unbundle', ['copy-bundle-placeholder'], function() { | |
return bundler.unbundle(config); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment