 \href{https://github.com/webpack/webpack}{\texttt{  }} 

\href{https://npmjs.com/package/webpack-dev-server}{\texttt{ }} \href{https://nodejs.org}{\texttt{ }} \href{https://david-dm.org/webpack/webpack-dev-server}{\texttt{ }} \href{https://dev.azure.com/webpack/webpack-dev-server/_build/latest?definitionId=7&branchName=master}{\texttt{ }} \href{https://codecov.io/gh/webpack/webpack-dev-server}{\texttt{ }} \href{https://gitter.im/webpack/webpack}{\texttt{ }} \href{https://npmjs.com/package/webpack-dev-server}{\texttt{ }} \href{https://github.com/webpack/webpack-dev-server/graphs/contributors}{\texttt{ }}\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33717}{}\doxysection{webpack-\/dev-\/server}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33717}
Use \href{https://webpack.js.org}{\texttt{ webpack}} with a development server that provides live reloading. This should be used for {\bfseries{development only}}.

It uses \href{https://github.com/webpack/webpack-dev-middleware}{\texttt{ webpack-\/dev-\/middleware}} under the hood, which provides fast in-\/memory access to the webpack assets.\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33718}{}\doxysubsection{Table of Contents}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33718}

\begin{DoxyItemize}
\item \href{\#getting-started}{\texttt{ Getting Started}}
\item \href{\#usage}{\texttt{ Usage}}
\begin{DoxyItemize}
\item \href{\#with-the-cli}{\texttt{ With the CLI}}
\item \href{\#with-npm-scripts}{\texttt{ With NPM Scripts}}
\item \href{\#the-result}{\texttt{ The Result}}
\end{DoxyItemize}
\item \href{\#browser-support}{\texttt{ Browser Support}}
\item \href{\#support}{\texttt{ Support}}
\item \href{\#contributing}{\texttt{ Contributing}}
\item \href{\#attribution}{\texttt{ Attribution}}
\item \href{\#license}{\texttt{ License}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33719}{}\doxysubsection{Getting Started}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33719}
First things first, install the module\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{npm install webpack-\/dev-\/server -\/-\/save-\/dev }

\end{DoxyCode}


{\itshape Note\+: While you can install and run webpack-\/dev-\/server globally, we recommend installing it locally. webpack-\/dev-\/server will always use a local installation over a global one.}\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33720}{}\doxysubsection{Usage}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33720}
There are two main, recommended methods of using the module\+:\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33721}{}\doxysubsubsection{With the CLI}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33721}
The easiest way to use it is with the CLI. In the directory where your {\ttfamily webpack.\+config.\+js} is, run\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{node\_modules/.bin/webpack-\/dev-\/server }

\end{DoxyCode}


{\itshape {\bfseries{Note}}\+: Many CLI options are available with {\ttfamily webpack-\/dev-\/server}. Explore this \href{https://webpack.js.org/configuration/dev-server/}{\texttt{ link}}.}\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33722}{}\doxysubsubsection{With NPM Scripts}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33722}
NPM package.\+json scripts are a convenient and useful means to run locally installed binaries without having to be concerned about their full paths. Simply define a script as such\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{"{}scripts"{}: \{}
\DoxyCodeLine{  "{}start:dev"{}: "{}webpack-\/dev-\/server"{}}
\DoxyCodeLine{\} }

\end{DoxyCode}


And run the following in your terminal/console\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{npm run start:dev }

\end{DoxyCode}


NPM will automagically reference the binary in {\ttfamily node\+\_\+modules} for you, and execute the file or command.\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33723}{}\doxysubsubsection{The Result}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33723}
Either method will start a server instance and begin listening for connections from {\ttfamily localhost} on port {\ttfamily 8080}.

webpack-\/dev-\/server is configured by default to support live-\/reload of files as you edit your assets while the server is running.

See \href{https://webpack.js.org/configuration/dev-server/\#devserver}{\texttt{ {\bfseries{the documentation}}}} for more use cases and options.\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33724}{}\doxysubsection{Browser Support}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33724}
While {\ttfamily webpack-\/dev-\/server} transpiles the client (browser) scripts to an ES5 state, the project only officially supports the {\itshape last two versions of major browsers}. We simply don\textquotesingle{}t have the resources to support every whacky browser out there.

If you find a bug with an obscure / old browser, we would actively welcome a Pull Request to resolve the bug.\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33725}{}\doxysubsection{Support}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33725}
We do our best to keep Issues in the repository focused on bugs, features, and needed modifications to the code for the module. Because of that, we ask users with general support, \char`\"{}how-\/to\char`\"{}, or \char`\"{}why isn\textquotesingle{}t this working\char`\"{} questions to try one of the other support channels that are available.

Your first-\/stop-\/shop for support for webpack-\/dev-\/server should by the excellent \href{https://webpack.js.org/configuration/dev-server/\#devserver}{\texttt{ documentation}} for the module. If you see an opportunity for improvement of those docs, please head over to the \href{https://github.com/webpack/webpack.js.org}{\texttt{ webpack.\+js.\+org repo}} and open a pull request.

From there, we encourage users to visit the \href{https://gitter.im/webpack/webpack}{\texttt{ webpack Gitter chat}} and talk to the fine folks there. If your quest for answers comes up dry in chat, head over to \href{https://stackoverflow.com/questions/tagged/webpack-dev-server}{\texttt{ Stack\+Overflow}} and do a quick search or open a new question. Remember; It\textquotesingle{}s always much easier to answer questions that include your {\ttfamily webpack.\+config.\+js} and relevant files!

If you\textquotesingle{}re twitter-\/savvy you can tweet \href{https://twitter.com/search?q=webpack}{\texttt{ \#webpack}} with your question and someone should be able to reach out and lend a hand.

If you have discovered a \+:bug\+:, have a feature suggestion, or would like to see a modification, please feel free to create an issue on Github. {\itshape Note\+: The issue template isn\textquotesingle{}t optional, so please be sure not to remove it, and please fill it out completely.}\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33726}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33726}
We welcome your contributions! Please have a read of CONTRIBUTING.md for more information on how to get involved.\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33727}{}\doxysubsection{Attribution}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33727}
This project is heavily inspired by \href{https://github.com/peerigon/nof5}{\texttt{ peerigon/nof5}}.\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33728}{}\doxysubsection{License}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33728}
\hypertarget{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33729}{}\doxyparagraph{$<$a href=\char`\"{}./\+LICENSE\char`\"{}$>$\+MIT$<$/a$>$}\label{md_sfcode_node_modules_webpack_dev_server_README_autotoc_md33729}
