Comments (9)
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.
Ah, I got it. The public API is actually uglify()
. What happens if you do minified = uglify data
?
from terser-brunch.
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.
(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.
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.
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.
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.
Actually minifier does not seem to have any loggings. You could try to add console.log
-s there by yourself
from terser-brunch.
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)
- Uglify breaks RickShaw HOT 10
- Weird errors when using 'brunch watch' HOT 30
- npm prepublish did not run HOT 1
- TypeError in NPM when using Brunch on Heroku from UglifyMinifier.optimize HOT 43
- Error when using source maps HOT 2
- Copyright notice is always stripped HOT 3
- Fatal error when setting uglify.ignored HOT 2
- Plugin not processing HOT 3
- Uglify js/json without concatenation (files/javascripts/joinTo) HOT 4
- rename minjs HOT 7
- Fail to compress js builded from typescript HOT 10
- Brunch 2.0 support HOT 1
- Arrow functions / ES6 error ? HOT 2
- Supporting uglify-es? HOT 4
- Can't generate a production build HOT 4
- Optimizing of ../priv/static/js/app.js failed. L12175:31 SyntaxError: Unexpected token: operator (>) HOT 1
- Need config options with angular HOT 3
- JS minify failed on public/javascripts/app.js: TypeError: Cannot assign to read only property 'except' of [object Object] HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terser-brunch.