Skip to content

Instantly share code, notes, and snippets.

@kijanawoodard
Created November 24, 2015 03:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kijanawoodard/9c5a89bb96419b98ba33 to your computer and use it in GitHub Desktop.
Save kijanawoodard/9c5a89bb96419b98ba33 to your computer and use it in GitHub Desktop.
aurelia bundle config
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