You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Executing a long command such as "node_modules/.bin/webpack" is boring and error prone. Thankfully, npm can be used as a task runner, hiding verbose scripts under simple commands such as "npm start". This can be achieved easily by setting up a scripts section to package.json, as shown below:</p>
239
+
<p>Notice that all scripts configured in the package.json file already have the “node_modules/.bin” folder in the path, so you don’t need to explicitly call the desired command with the full path.</p>
@@ -426,19 +427,19 @@ <h1 id="webpackdevelopment">Webpack Development Server</h1>
426
427
}
427
428
</code></pre></p>
428
429
429
-
<p>Instead of running the webpack command, now you will execute the "webpack-dev-server" to start the server. As you did previously, you will need to specify the path to the executable inside your project's node modules:</p>
430
+
<p>Instead of running the webpack command, now you will execute the "webpack-dev-server" to start the server:</p>
<p>For convenience, you can edit the "scripts" section in your project's package.json file to run the server by invoking "npm start", as shown below:</p>
434
+
<p>For convenience, you can edit the "scripts" section in your project's package.json file to run the server by invoking "npm start", as shown below (remember that it’s not necessary to fill the complete path to “node_modules/.bin” inside the scripts section):</p>
0 commit comments