Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
start-server-webpack-plugin
Advanced tools
Automatically start your server once Webpack's build completes.
Automatically start your server once Webpack's build completes.
$ npm install --save-dev start-server-webpack-plugin
In webpack.config.server.babel.js
:
import StartServerPlugin from "start-server-webpack-plugin";
export default {
// This script will be ran after building
entry: {
server: ...
},
...
plugins: [
...
// Only use this in DEVELOPMENT
new StartServerPlugin({
name: 'server.js',
nodeArgs: ['--inspect'], // allow debugging
args: ['scriptArgument1', 'scriptArgument2'], // pass args to script
}),
...
],
...
}
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.
You can use nodeArgs
and args
to pass arguments to node and your script, respectively. For example, you can use this to use the node debugger.
MIT License 2016 © Eric Clemmons
FAQs
Automatically start your server once Webpack's build completes.
The npm package start-server-webpack-plugin receives a total of 8,142 weekly downloads. As such, start-server-webpack-plugin popularity was classified as popular.
We found that start-server-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.