Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@xsyx/common-portal
Advanced tools
import commonPortal from '@xsyx/common-portal'
// use
<common-portal injections brand system-name nav-src default-open default-active/>
如: m-basic-setting, m-basic-userlist
vue 默认
new Vue({
el: selector,
render(h){
return h(App);
},
})
注入 portal 上下文
export default function(selector, context){
return new Vue({
el: selector,
render(h){
return h(App);
},
})
}
module.exports = {
filenameHashing: false,
configureWebpack: () => ({
// ...
// 取消代码分割
optimization: {
splitChunks: false
},
// 抽出公共资源减少打包体积
externals: {
vue: 'Vue',
'element-ui': 'ELEMENT',
}
// ...
}),
// 样式内联
css: {
extract: false
},
// ...
}
FAQs
```javascript import commonPortal from '@xsyx/common-portal'
We found that @xsyx/common-portal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.