Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6818169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:08:42+00:00 2026-05-26T21:08:42+00:00

On development, I am using JS modules for a better organization of my code.

  • 0

On development, I am using JS modules for a better organization of my code. For example, I have module1.js, module2.js and both modules are included in the main.js with LABjs

$LAB
.script("module1.js").wait()
.script("module2.js").wait();

However, I also use Google Closure Compiler for code optimization and it requires a integrated javascript file according to the documentation.

The simplest solution to this problem is to compile your functions together with the portion of your program that calls those functions.

So I want to integrate all the modules into one js file which could then compiled with Google Closure Compiler. LabJS runs on the client side and won’t get things done on the server-side. So is there any tools to perform this job? Or is there other library supports server-side module integration?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:08:43+00:00Added an answer on May 26, 2026 at 9:08 pm

    I found RequireJS has offered an optimization tool which could

    Combines related scripts together into build layers and minifies them via UglifyJS (the default) or Closure Compiler (an option when using Java).

    In the Documentation, for a page with the following main.js which imports one.js, two.js and three.js:

    require(["one", "two", "three"], function (one, two, three) {
    });

    This optimization tool could compress them into one integrated file is

    node ../../r.js -o name=main out=main-built.js baseUrl=.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code using JPA and everything works fine in my development environment and
I've done lots of java web development using jsps and servlets, and I have
I have the occasion to produce Drupal web sites using development, staging, and production
I have a script, which contains some packages/modules. Now, the development and the production
i have a decent understanding of configuring drupal and using modules for basic stuff,
I have a GWT+GAE web app with several service and modules. I am using
Improving Web Development Using Virtualization
We do ASP.NET Development using Visual Studio. A discussion point we've just had is
I'm new to development using Xcode, and am having trouble using the built-in Leaks
I want to start development using qt-embedded on my embedded device project. Can you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.