New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sugar-scripts

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sugar-scripts

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
3
-72.73%
Maintainers
2
Weekly downloads
 
Created
Source

sugar-scripts

自动配置

import HomePageView from 'sugar?browser-entry/../../browser/home';

配置文件

sugar.config.ts 项目说明文件,放于项目根目录,一般和package.json同级

sugar.config.ts 配置文件详细说明

sugar.config.ts按需导出3个配置内容

  • packageConfig
  • browserWebpackConfig
  • serverWebpackConfig
packageConfig
import {
  SugarScriptsProject
} from 'sugar-scripts';

export const projectConfig: SugarScriptsProject.PackageConfig = {
    /**
     * 用于存放打包过程中的一些缓存和过渡产物
     * 相对于当前sugar.config的路径
     * 默认使用 './sugar-cache'
     */
    cacheDir: './sugar-cache',
    browser?: {
      /**
       * 输出目录
       */
      output: string;
      // exposes?: string[] | {[index: string]: string},
      entry?: BuildEntry
    };

    server?: {
      // dll?: boolean;
      output: string;
      entry: string;
      render?: string;
    };
}

FAQs

Package last updated on 26 Jan 2026

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