I have a folder structure like this:

```
.
├── autocomplete
│   ├── core.js
│   ├── search.js
│   └── user.js
├── build.js
├── collapsible_lists.js
├── griffgrabber
│   ├── canvasobject.js
│   ├── cargame.js
│   ├── car.js
│   ├── griffDrawer.js
│   ├── keylistener.js
│   ├── run.js
│   └── victim.js
├── main.js
├── newsfeed.js
├── require.js
├── shortcut.js
└── sidebar.js

3 directories, 20 files

```

main.js is the startup file. That file requires a couple of the files, but not all of them. The rest of the files are included with

```
<script>
    require(['shortcut'], function(shortcut){
        // ...
    })
</script>

```

in some html files.

This is my build.js file so far:

```
{
    baseUrl: ".",
    name: "main",
    out: "main-built.js",
}

```

But it only includes the files that are required by main.js. Is it possible to optimize all the javascript files in one run?