<commit_before># Dev Server and HMR

To run a development server all you need is to change `bundle` to `devServer`

## Launch express and socket 
```js
FuseBox.init({
    homeDir: "src",
    outFile: "build/out.js",
}).devServer(">index.ts");
```
the `devServer` function takes an *optional* options parameter as a second argument.

### Changing the the served folder
FuseBox will automatically serve your `build` folder e.g. with `outFile : "build/out.js"` the build server is `build/`.

You can change it by passing in a string value to the `root` option: 

```js
devServer(">index.ts", {
   root: 'public/build'
});
```

### Changing the port<commit_msg>:memo: relative to process.cwd<commit_after># Dev Server and HMR

To run a development server all you need is to change `bundle` to `devServer`

## Launch express and socket 
```js
FuseBox.init({
    homeDir: "src",
    outFile: "build/out.js",
}).devServer(">index.ts");
```
the `devServer` function takes an *optional* options parameter as a second argument.

### Changing the the served folder
FuseBox will automatically serve your `build` folder e.g. with `outFile : "build/out.js"` the build server is `build/`.

You can change it by passing in a string value to the `root` option (relative to `process.cwd`): 

```js
devServer(">index.ts", {
   root: 'public/build'
});
```

### Changing the port
{'fraction_non_alphanumeric': 0.13539367181751288, 'fraction_numerical': 0.0, 'mean_word_length': 4.291828793774319, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4579419', 'n_tokens_mistral': 434, 'n_tokens_neox': 417, 'n_words': 173}