Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
build-plugin-at-spa
Advanced tools
build-scripts 插件,支持基于at的业务开发。
"plugins": [
"build-plugin-ice-app",
"@ali/build-plugin-ice-def",
["build-plugin-at-spa", { "theme": "teambition" }]
]
在项目目录的build.json
中配置该插件。
theme
为添加的业务类型,可选值为'teambition'(tb),'apsara'(专有云),'infra'(天基),默认值为 'teambition'。
modifyVars
可修改scss变量的值,变量详见 https://design.teambition.com/color:
对亮暗色均生效:
{
"modifyVars": {
"gray-08": "#303040"
}
}
区分亮暗色生效
{
"modifyVars": {
"normal": {
"gray-08": "#303040"
},
"dark": {
"gray-08": "#404030"
}
}
}
commonSassResources
,用于设置sass-resources-loader的options.resources
,可以将一些通用的sass资源(mixin,function等)自动注入到每个scss
文件中,避免手动引入。
vendor
,用于设置是否抽取公共依赖,0.7.0 添加。如果有公共依赖,会额外生成 vendor.js 和 vendor.css。
若需要进行暗色模式的开发,build-scripts start --dark
,同时修改public/index.html
中
teambition.min.css
或apsara.min.css
为teambition-dark.min.css
或apsara-dark.min.css
。
若要进行亮暗色同时构建,
build-scripts build --dm
,构建产物中[name].js
、[name].css
为亮色主题对应资源文件,[name]-dark.js
、[name]-dark.css
为暗色色主题对应资源文件。
若需要在start时指定publicPath,
build-scripts start --devPublicPath=xxxx
FAQs
build-scripts for at spa
The npm package build-plugin-at-spa receives a total of 36 weekly downloads. As such, build-plugin-at-spa popularity was classified as not popular.
We found that build-plugin-at-spa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.