Skip to content

Commit

Permalink
refactor: remove less config
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Jan 2, 2024
1 parent 2fa798d commit 9f4a989
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions crates/mako/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ pub enum DevtoolConfig {
None,
}

#[derive(Deserialize, Serialize, Debug)]
pub struct LessConfig {
pub theme: HashMap<String, String>,
#[serde(rename(deserialize = "lesscPath"))]
pub lessc_path: String,
#[serde(rename(deserialize = "javascriptEnabled"))]
pub javascript_enabled: bool,
}

#[derive(Deserialize, Serialize, Clone, Copy, Debug)]
pub enum ModuleIdStrategy {
#[serde(rename = "hashed")]
Expand Down Expand Up @@ -286,7 +277,6 @@ pub struct Config {
pub define: HashMap<String, Value>,
pub stats: bool,
pub mdx: bool,
pub less: LessConfig,
pub hmr: Option<HmrConfig>,
pub code_splitting: CodeSplittingStrategy,
pub px2rem: Option<Px2RemConfig>,
Expand Down
6 changes: 0 additions & 6 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ import("./a.js")
}
```

注:多 entry 的 code splitting 支持还在开发中。

## externals

- 类型:`Record<string, string>`
Expand Down Expand Up @@ -190,10 +188,6 @@ import("./a.js")

小于 `inlineLimit` 大小的 assets 文件会被转换成 `base64` 格式。

## less

> 注:已废弃,待移除。
## manifest

- 类型:`null | { fileName?: string, basePath?: string }`
Expand Down

0 comments on commit 9f4a989

Please sign in to comment.