start-server-webpack-plugin
Advanced tools
Comparing version 2.0.2 to 2.1.0
{ | ||
"name": "start-server-webpack-plugin", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "Automatically start your server once Webpack's build completes.", | ||
@@ -5,0 +5,0 @@ "main": "dist/StartServerPlugin.js", |
@@ -26,3 +26,3 @@ # start-server-webpack-plugin | ||
entry: { | ||
... | ||
server: ... | ||
}, | ||
@@ -33,3 +33,3 @@ ... | ||
// Only use this in DEVELOPMENT | ||
new StartServerPlugin(), | ||
new StartServerPlugin('server.js'), | ||
... | ||
@@ -41,5 +41,8 @@ ], | ||
The `name` argument in `new StartServerPlugin(name)` refers to the built asset, which is named by the output options of webpack (in the example the entry `server` becomes `server.js`. This way, the plugin knows which entry to start in case there are several. | ||
If you don't pass a name, the plugin will tell you the available names. | ||
### License | ||
> MIT License 2016 © Eric Clemmons |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6295
46
1