
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
基础 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 3 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.