Comments (6)
Should be an option, could use uglifyJS
from component.
-1 from me becauuuuse this would typically be deployment thing, which is super ad-hoc
from component.
Just tried to add the option usign UglifyJS. It's super easy but I'm agree is more for deployment than dev.
I'll close the ticket. If anyone wants to minify the build.js can just $ component build && uglifyjs -o build/build.js
(if you build into the default path)
from component.
not sure i get this ... when i use uglify on a build.js i only minify the outer loader script of component.io, i.e. the require functionality. uglify does not minify the scripts inside of the require statements since they are just strings from the perspective of uglify... but minimizing has to run during the gathering phase of the component.io builder ..
thats where https://github.com/Wizcorp/component-uglifyjs and other build step components come in .. just thought i should mention it here, in case others find this issue and think just passing the build.js in would be enough
from component.
You should build without the --dev
option then. See https://github.com/component/builder.js/blob/master/lib/plugins/commonjs.js#L65-L70
from component.
Awesome .. It didn't know it did that .. I had thought dev would only add the source file names irrespective of the content...
Doing it as part of the pipeline though might have the advantage of still knowing where a potential error originated from .
but that's not really a good reason ... And it might not work anyway..
-----Original Message-----
From: "Julian Gruber" [email protected]
Sent: 30.01.2014 09:38
To: "component/component" [email protected]
Cc: "matthiasg" [email protected]
Subject: Re: [component] Minify option on build (#50)
You should build without the --dev option then. See https://github.com/component/builder.js/blob/master/lib/plugins/commonjs.js#L65-L70
—
Reply to this email directly or view it on GitHub.
from component.
Related Issues (20)
- Can I use non-component based libraries? HOT 4
- component {fork,unfork} <component> HOT 2
- ComponentJS vs JSPM + SystemJS HOT 1
- Can't use Component modules with a RequireJS environment HOT 12
- Private Repo doesn't seem to be working HOT 17
- Getting Uncaught Error: failed to require template HOT 11
- need auth for travis to avoid github rate limit and failed build status
- On chrome debug points off by two lines for --dev builds HOT 2
- Getting Failed to Require message HOT 3
- component.github.io shows no results HOT 1
- fatal : no remote found for dependency '....' HOT 20
- fatal : Error downloading "github//component/[email protected]". Got status code "404" HOT 5
- getting component module to be called with --harmony HOT 4
- fatal : no remote found for dependency... HOT 2
- Follow the chain of paths for remote dependencies HOT 4
- announce "this project is not maintained anymore" HOT 8
- How to install dependencies to a particular folder? HOT 2
- How can a project depend on a github repository that doesn't have a componser.json HOT 2
- Clean up the maintainers list? HOT 2
- Cant require node_modules when componentjs is installed? HOT 3
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 component.