Skip to content

Commit

Permalink
Updated the definition of the 'bundle' property to support specific B…
Browse files Browse the repository at this point in the history
…undler options. (#36)

* Updated the definition of the 'bundle' property to support specific Bundler options.
  • Loading branch information
usergenic authored Jun 21, 2017
1 parent b88f6d3 commit 15b5d8a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

<!-- ## Unreleased -->
## Unreleased
* Modified the `bundle` property in project build options to support the subset of `polymer-bundler` options which can be serialized in a JSON file.
<!-- Add new, unreleased changes here. -->

## [3.3.0] - 2017-06-09
Expand Down
24 changes: 23 additions & 1 deletion src/builds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,29 @@ export interface ProjectBuildOptions {
* reduce the number of file requests. This is optimal for sending to clients
* or serving from servers that are not HTTP/2 compatible.
*/
bundle?: boolean;
bundle?: boolean|{

/** URLs of files and/or folders that should not be inlined. */
excludes?: string[],

/** Inline external CSS file contents into <style> tags. */
inlineCss?: boolean,

/** Inline external Javascript file contents into <script> tags. */
inlineScripts?: boolean,

/** Rewrite element attributes inside of templates when inlining html. */
rewriteUrlsInTemplates?: boolean,

/** Create identity source maps for inline scripts. */
sourcemaps?: boolean,

/**
* Remove all comments except those tagged '@license', or starting with
* `<!--!` or `<!--#`, when true.
*/
stripComments?: boolean,
};

/** Options for processing HTML. */
html?: {
Expand Down

0 comments on commit 15b5d8a

Please sign in to comment.