Answer the question
In order to leave comments, you need to log in
What is a webpack dev server?
I can't figure out what this thing is for.
Answer the question
In order to leave comments, you need to log in
With this thing you will be able to develop applications with high speed and comfort.
Webpack Dev Server allows you to run a local server (on your PC) and automatically check for changes to all files needed for development. That is, you do not have to restart the project to update the changes.
you write to the console:
npm i webpack-dev-server
in package.json , in the scripts field , add the following commands:
"scripts": {
"commandName": "webpack-dev-server",
}
commandName
the name of your team. devServer: {
port: 8888, // определяет порт
overlay: { // показывает ошибки или предупреждения при разработке
warnings: boolean,
errors: boolean
},
open: true, // открывает окно браузера
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question