From 0df660fce387937ea08227950dfbbf03f4b41e23 Mon Sep 17 00:00:00 2001 From: Douglas Gabriel Cardoso Date: Wed, 11 Nov 2020 18:05:25 -0200 Subject: [PATCH] docs(hot-reload): Changing a lib not compatible with webpack 5 --- content/recipes/hot-reload.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/content/recipes/hot-reload.md b/content/recipes/hot-reload.md index 287f8c11c5..19aa43f709 100644 --- a/content/recipes/hot-reload.md +++ b/content/recipes/hot-reload.md @@ -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 @@ -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], @@ -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 @@ -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'],