Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@creditas-lib/microfrontend-webpack-config
Advanced tools
Some defaults for webpack configs at Creditas
Some defaults for webpack configs at Creditas.
First, install the library as a devDependency.
yarn add --dev @creditas/microfrontend-webpack-config @babel/runtime @babel/plugin-transform-runtime
Now create a webpack.config.js file. This file will use @creditas/microfrontned-webpack-config and allow you to override anything you want to about the defaults. Inside of the
file, call the webpackConfigModuleApp()
function to get some defaults and add/override to your webpack config. See example below:
// webpack.config.js
const {webpackConfigModuleApp} = require('@creditas/microfrontend-webpack-config')
module.exports = webpackConfigModuleApp('calculator', {
// Override or add anything you want to your webpack config
module: {
rules: [
// e.g. apply a css loader if using css-modules
{loader: 'css-loader'},
],
},
})
Finally, create the following scripts
in your package.json:
{
"scripts": {
"start": "webpack-dev-server --config ./webpack.config.js --env.standalone",
"start:single-spa": "webpack-dev-server --config ./webpack.config.js --port 8000",
"build": "webpack -p --config webpack.config.js --env.analyze=static",
"analyze": "webpack --config webpack.config.js --env.analyze=server",
}
}
To see your full webpack config, simply add a --env.debug
to your webpack cli command.
FAQs
Some defaults for webpack configs at Creditas
The npm package @creditas-lib/microfrontend-webpack-config receives a total of 1 weekly downloads. As such, @creditas-lib/microfrontend-webpack-config popularity was classified as not popular.
We found that @creditas-lib/microfrontend-webpack-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.