Code Monkey home page Code Monkey logo

Comments (6)

ForbesLindesay avatar ForbesLindesay commented on August 15, 2024

Should be an option, could use uglifyJS

from component.

tj avatar tj commented on August 15, 2024

-1 from me becauuuuse this would typically be deployment thing, which is super ad-hoc

from component.

impronunciable avatar impronunciable commented on August 15, 2024

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.

matthiasg avatar matthiasg commented on August 15, 2024

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.

juliangruber avatar juliangruber commented on August 15, 2024

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.

matthiasg avatar matthiasg commented on August 15, 2024

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)

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.