Comments (10)
Ok, but you missed my first point. We do not maintain the Uglify library, just use it. You should try directly running Uglify on these scripts to see if there is a problem, and if so let the Uglify and/or library authors know about it.
It's only something for us to look into and fix if directly uglifying works, but through brunch it does not.
Or if you want the easy answer, just use the pre-minified versions provided by the library authors in your project.
from terser-brunch.
you can't
from terser-brunch.
or you can move it to app/assets
and it will be simply copied
from terser-brunch.
Hello paulmillr, I deleted my comment since I find out that it was impossible (but you were to fast) :p
Ty guys
from terser-brunch.
Just try dropping in the pre-minified one. It will run through Uglify, but maybe it won't break that version.
On Aug 21, 2013, at 9:46 AM, kursion [email protected] wrote:
Hello paulmillr, I deleted my comment since I find out that it was impossible :p
—
Reply to this email directly or view it on GitHub.
from terser-brunch.
I tried both: first the non minified, then the minified version of RickShaw. Both failed...
from terser-brunch.
oh that sucks... well I think at this point dropping it in assets
as @paulmillr suggested and making a separate <script>
tag for it in your HTML will be your best bet.
And you should report this to https://github.com/mishoo/UglifyJS2
from terser-brunch.
Hi,
this is a known problem, as you can see in this Rickshaw issue: shutterstock/rickshaw#52
This comment shutterstock/rickshaw#52 (comment) provide a solution working for requireJS. I test it with brunch that way:
plugins: {
uglify:{
except: ["$super"]
}
},
but it didn't work. Is except option managed by uglify-js-brunch plugin?
from terser-brunch.
All the options are passed through as-is https://github.com/brunch/uglify-js-brunch/blob/master/index.js#L53
So if it works directly with the uglify js api it should work here.
from terser-brunch.
Just tried this
plugins: {
uglify:{
mangle: false
}
},
and it works just fine :)
Hope this workaround will be useful for others, cause it's better than put Rickshaw in asset folder.
from terser-brunch.
Related Issues (19)
- Wrong minified output with a jade template HOT 9
- 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
- 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
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.