Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/recipes/hot-reload.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ If you are using the [Nest CLI](https://docs.nestjs.com/cli/overview), the confi
First install the required packages:

```bash
$ npm i --save-dev webpack-node-externals start-server-webpack-plugin
$ npm i --save-dev webpack-node-externals start-server-nestjs-webpack-plugin
```

#### Configuration
Expand All @@ -23,9 +23,9 @@ Once the installation is complete, create a `webpack-hmr.config.js` file in the
```typescript
const webpack = require('webpack');
const nodeExternals = require('webpack-node-externals');
const StartServerPlugin = require('start-server-webpack-plugin');
const StartServerPlugin = require('start-server-nestjs-webpack-plugin');

module.exports = function(options) {
module.exports = function (options) {
return {
...options,
entry: ['webpack/hot/poll?100', options.entry],
Expand Down Expand Up @@ -87,7 +87,7 @@ If you are not using the [Nest CLI](https://docs.nestjs.com/cli/overview), the c
First install the required packages:

```bash
$ npm i --save-dev webpack webpack-cli webpack-node-externals ts-loader start-server-webpack-plugin
$ npm i --save-dev webpack webpack-cli webpack-node-externals ts-loader start-server-nestjs-webpack-plugin
```

#### Configuration
Expand All @@ -98,7 +98,7 @@ Once the installation is complete, create a `webpack.config.js` file in the root
const webpack = require('webpack');
const path = require('path');
const nodeExternals = require('webpack-node-externals');
const StartServerPlugin = require('start-server-webpack-plugin');
const StartServerPlugin = require('start-server-nestjs-webpack-plugin');

module.exports = {
entry: ['webpack/hot/poll?100', './src/main.ts'],
Expand Down