
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
基础 webpack 依赖包
$ npm install -D @@nioh/pack
const {client, helper} = require('@@nioh/pack')
helper
.set('baseDir', __dirname) // 必填
.set('preset', 'vue') // 可选,支持 vue, react, 将不同的处理
.set('patch', (rules, plugins) => {
// 修改默认 loader 和 plugin,可选
console.log(rules, plugins)
// 举例:修改默认配置中 babel-loader 的 presets 和 plugins
rules.babel.use.options.presets.push('@babel/preset-react')
})
// 可选,仅针对基于 @nioh/core 项目,配置在Koa项目中入口
helper.set('entryInKoa', ['client'])
module.exports = client
管理输入输出
helper.set('entryInKoa', ['client'])
const config = helper.merge(client, {
entry: {
client: helper.resolve(__dirname, 'client.js')
},
output: {
path: helper.resolve(__dirname, 'dist'),
publicPath: '/runtime/'
}
})
helper.set: 设置基础配置,baseDir,preset,patch,entryInKoa
helper.resolve: path.resolve
helper.merge: webpack-merge
project
|———— components
|———— app.js
|———— webpack.config.js
FAQs
basic webpack config, easy for build
The npm package @nioh/pack receives a total of 5 weekly downloads. As such, @nioh/pack popularity was classified as not popular.
We found that @nioh/pack 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.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.