Code Monkey home page Code Monkey logo

Comments (9)

paulmillr avatar paulmillr commented on July 18, 2024

as you can see in the source code, it does the recommended in readme stuff. maybe command line uglify does something else than gen_code ast_squeeze ast_mangle parse data. Maybe @mishoo could help us?

from terser-brunch.

paulmillr avatar paulmillr commented on July 18, 2024

Ah, I got it. The public API is actually uglify(). What happens if you do minified = uglify data?

from terser-brunch.

chrismcv avatar chrismcv commented on July 18, 2024

hey, changing to uglify does the same thing, however, i think there must we something else going on....

my config has the following:

    templates:
      defaultExtension: 'jade'
      joinTo: 'javascripts/templates.js'

and no other reference to the template.js file....

i also have app.js and vendor.js....

when I run brunch b -m with a console.log('uglify') above uglify(data) it only fires twice, (for vendor and app), so I think the templates.js must be getting broken elsewhere? is that possible?

from terser-brunch.

chrismcv avatar chrismcv commented on July 18, 2024

(also, on a maybe unrelated note, "minify:true" in config.coffee seems to have no effect - I have to minify via command line

from terser-brunch.

mishoo avatar mishoo commented on July 18, 2024

If I minify that template from the command line using uglifyjs, the output seems fine (that is, it's syntactically valid). I don't know anything about β€œbrunch”, but it's probably not an UglifyJS issue.

from terser-brunch.

paulmillr avatar paulmillr commented on July 18, 2024

Sounds strange, I think you will need to debug the brunch itself. You can start at src/fs_utils/generted_file.coffee (line 82).

from terser-brunch.

chrismcv avatar chrismcv commented on July 18, 2024

BRUNCH_DEBUG=1 brunch build -o build
This isn't outputting any debug info on ubuntu/windows for me? is there
another trick to get the logger.debug line out?

On Fri, Sep 7, 2012 at 4:25 PM, Paul Miller [email protected]:

Sounds strange, I think you will need to debug the brunch itself. You can
start at src/fs_utils/generted_file.coffee (line 82).

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-8368574.

from terser-brunch.

paulmillr avatar paulmillr commented on July 18, 2024

Actually minifier does not seem to have any loggings. You could try to add console.log-s there by yourself

from terser-brunch.

paulmillr avatar paulmillr commented on July 18, 2024

The latest commit seem to fix the issue.

Specify this in your brunch config:

config: {
  plugins: {
    uglify: {mangle_options: {mangle: false}}
  }
}

and try the stuff.

from terser-brunch.

Related Issues (19)

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.