Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

build-plugin-aisc

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-plugin-aisc

build-scripts for aisc

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

build-plugin-aisc

build-scripts 插件,支持基于aisc的天基多页业务开发。

使用

"plugins": [
  "build-plugin-ice-app",
  "build-plugin-aisc"
]

在项目目录的build.json中配置该插件。

选项

modifyVars可修改scss变量的值,变量详见 http://aisc.alibaba-inc.com/site/pc#/cate/1/page/78

对亮暗色均生效:

{
  "modifyVars": {
    "color-b1-6": "#2e85ff"
  }
}

区分亮暗色生效

{
  "modifyVars": {
    "normal": {
      "color-b1-6": "#2e85ff"
    },
    "dark": {
      "gray-08": "#4579dff"
    }
  }
}

commonSassResources,用于设置sass-resources-loaderoptions.resources,可以将一些通用的sass资源(mixin,function等)自动注入到每个scss文件中,避免手动引入。

命令行参数

若需要进行暗色模式的开发,build-scripts start --dark

若要进行亮暗色同时构建, build-scripts build --dm,构建产物中[name].js[name].css为亮色主题对应资源文件,[name]-dark.js[name]-dark.css为暗色色主题对应资源文件。

Keywords

FAQs

Package last updated on 27 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc