Skip to content

Commit

Permalink
Allow false for html, css and js options.
Browse files Browse the repository at this point in the history
To disable file generation.
  • Loading branch information
tmpfs committed Jul 28, 2016
1 parent bc866cf commit ec29927
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/skate-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ module.exports = {
transforms: ['trim', 'csp', 'skate', 'bundle'],
out: 'build',
force: true,
css: false,
html: false,
conf: {
transforms: {
csp: {
Expand Down
2 changes: 2 additions & 0 deletions examples/skate-component/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module.exports = {
transforms: ['trim', 'csp', 'skate', 'bundle'],
out: 'build',
force: true,
css: false,
html: false,
conf: {
transforms: {
csp: {
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ function options(state, cb) {
}

// specific overrides for each output type
if(html && !options.html) {
if(html && !options.html && (options.html !== false)) {
options.html = html;
}
if(css && !options.css) {
if(css && !options.css && (options.css !== false)) {
options.css = css;
}
if(js && !options.js) {
if(js && !options.js && (options.js !== false)) {
options.js = js;
}

Expand Down

0 comments on commit ec29927

Please sign in to comment.