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.
@justeat/f-build-js
Advanced tools
Webpack configuration for JS Builds
README To Be Written
f-build-js
is setup with a bunch of sensible defaults that the majority of projects will be able to use out of the box.
However, should you wish to adjust the config of any part of webpack config, you can hook into the rules and merge/override them with your own configuration using the hooks in webpack-chain
.
For example, say you wanted to change the name of the JS file being produced from the default entrypoint, you would do so in the following way:
const webpackConfig = require('@justeat/f-build-js');
webpackConfig
.output
.path(__dirname)
.filename('testName.js');
For overwriting or adding options within a loaders configuration you will need to use these hooks combined with the babel-merge
package.
One example would be if you wanted to override the default behaviour of the ESLint rule to turn off auto-fixing. You could do this by declaring the following in your webpack.config.js
:
const webpackConfig = require('@justeat/f-build-js');
const merge = require('babel-merge');
webpackConfig.module
.rule('jsLinting')
.use('eslint')
.tap(options => merge(options, {
fix: false // turn off autofix
}));
module.exports = webpackConfig.toConfig();
A full list of the named rules and loaders you can hook into are listed below.
TODO
FAQs
Fozzie Build configuration for JS components
The npm package @justeat/f-build-js receives a total of 3 weekly downloads. As such, @justeat/f-build-js popularity was classified as not popular.
We found that @justeat/f-build-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 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.
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.