Git Product home page Git Product logo

Comments (8)

terinjokes avatar terinjokes commented on June 9, 2024

Previously I've directed users to the gulp-header and gulp-footer plugins, but they haven't seen love lately. :(

I think I'll just write a generic IIFE stream transform and suggest that.

from gulp-uglify.

arb avatar arb commented on June 9, 2024

Gulp Wrap ended up being what I used.

.pipe(concat('main.js'))
.pipe(wrap('(function(a){<%= contents %>}(angular));'))

from gulp-uglify.

terinjokes avatar terinjokes commented on June 9, 2024

Awesome. figures someone else already made what I was thinking about.

from gulp-uglify.

jimmywarting avatar jimmywarting commented on June 9, 2024

I think maybe this should be re-opend.

Uglify-js has this option and it should be used instead of having to relay on gulp-wrap. gulp-uglifyjs has this feature and accomplish this by doing it the hard way

wrap/exportAll/enclose is something that I would like to use

from gulp-uglify.

ethanhann avatar ethanhann commented on June 9, 2024

+1 for not having to rely on gulp-wrap

from gulp-uglify.

terinjokes avatar terinjokes commented on June 9, 2024

This isn't going to happen until it's supported as an API option to UglifyJS.

from gulp-uglify.

indolering avatar indolering commented on June 9, 2024

It would be helpful if this limitation (and workarounds like gulp-wrap) was documented in the readme.

from gulp-uglify.

terinjokes avatar terinjokes commented on June 9, 2024

I agree, expect more awesome docs shortly.
On Jun 9, 2015 12:59 PM, "Zach Lym" [email protected] wrote:

It would be helpful if this limitation (and workarounds like gulp-wrap)
was documented in the readme.


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

from gulp-uglify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.