Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature request: global result options #79

Open
alexweissman opened this issue Apr 3, 2016 · 4 comments
Open

Feature request: global result options #79

alexweissman opened this issue Apr 3, 2016 · 4 comments

Comments

@alexweissman
Copy link

I'm having some difficulty getting result options to work globally in my gulpfile. I've tried:

        .pipe(plugins.bundleAssets.results({
            dest: './',  // destination of bundle.result.json
            type: {
              scripts: 'plain',
              styles: 'plain'
            }
        })) 

(where plugins.bundleAssets is a reference to the package). It is still defaulting to the html format for results.

I've also tried using the syntax mentioned briefly in #9, though I suspect that was just pre-planning.

@chmontgomery
Copy link
Contributor

Those result.type options are defined at the bundle level, not the global level. Have you tried following this example? https://github.com/dowjones/gulp-bundle-assets/tree/master/examples/custom-result#built-in

@alexweissman
Copy link
Author

Yup - but those appear to be per-bundle, correct? I was hoping to configure my task globally.

@chmontgomery
Copy link
Contributor

Right. At this point that config is only available at the bundle level. I'd
accept a PR ;)
On Apr 3, 2016 9:58 AM, "Alex Weissman" notifications@github.com wrote:

Yup - but those appear to be per-bundle, correct? I was hoping to configure
my task globally.


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#79 (comment)

@alexweissman
Copy link
Author

Ah, gotcha. Unfortunately, I'm pretty new to Node and have my hands full with UserFrosting. Maybe I can find someone in our community who'd be willing to contribute :-D

@alexweissman alexweissman changed the title Trouble getting global result options to work Feature request: global result options Apr 4, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants