Skip to content

Commit

Permalink
chore: update changelog and theme build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Jan 22, 2024
1 parent 6f86aa4 commit 8fcd27e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 21 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 2.17.3 (2024-01-22)

### 💡 主要变更

- [^] `$alert` / `$confirm` / `$prompt` / `$toast` 插件调用对应功能时现在可以设置 `theme` 参数了,并且默认会使用全局配置的 `theme`<!-- #$alert #$confirm #$prompt #$toast -->
- [^] `v-tooltip` 指令现在会使用最近的 VEUI 组件的 `theme` 配置。<!-- #v-tooltip -->

### 🐞 问题修复

- [^] 修复 `Table` 组件在 `column-filter` 动态切换时固定列位置可能计算不正确的问题。<!-- #Table -->

## 2.17.2 (2023-12-26)

### 💡 主要变更
Expand Down
72 changes: 51 additions & 21 deletions packages/veui-theme-dls/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,28 @@ function transformThemedLess () {
}
}

const commonPlugins = [
replace({
preventAssignment: true,
'process.env.NODE_ENV': '"development"'
}),
nodeResolve(),
commonjs(),
transformThemedLess(),
postcss({
minimize: true,
use: {
less: {
plugins: [varPlugin(), filePlugin()],
javascriptEnabled: true,
math: 'always'
}
}
})
]
function getCommonPlugins ({ extractCSS = false } = {}) {
return [
replace({
preventAssignment: true,
'process.env.NODE_ENV': '"development"'
}),
nodeResolve(),
commonjs(),
transformThemedLess(),
postcss({
minimize: true,
use: {
less: {
plugins: [varPlugin(), filePlugin()],
javascriptEnabled: true,
math: 'always'
}
},
extract: extractCSS
})
]
}

const externals = ['veui', 'veui/dist/veui.esm']

Expand All @@ -90,7 +93,22 @@ export default [
veui: 'veui'
}
},
plugins: [transformVeuiConfig('veui'), ...commonPlugins],
plugins: [transformVeuiConfig('veui'), ...getCommonPlugins()],
external: (id) => externals.indexOf(id) >= 0
},
{
input: 'index.js',
output: {
file: 'dist/dls.extract.js',
format: 'umd',
globals: {
veui: 'veui'
}
},
plugins: [
transformVeuiConfig('veui'),
...getCommonPlugins({ extractCSS: resolve('dist/dls.css') })
],
external: (id) => externals.indexOf(id) >= 0
},
{
Expand All @@ -99,7 +117,19 @@ export default [
file: 'dist/dls.esm.js',
format: 'esm'
},
plugins: [transformVeuiConfig('veui/dist/veui.esm'), ...commonPlugins],
plugins: [transformVeuiConfig('veui/dist/veui.esm'), ...getCommonPlugins()],
external: (id) => externals.indexOf(id) >= 0
},
{
input: 'index.js',
output: {
file: 'dist/dls.extract.esm.js',
format: 'esm'
},
plugins: [
transformVeuiConfig('veui/dist/veui.esm'),
...getCommonPlugins({ extractCSS: resolve('dist/dls.css') })
],
external: (id) => externals.indexOf(id) >= 0
}
]

1 comment on commit 8fcd27e

@vercel
Copy link

@vercel vercel bot commented on 8fcd27e Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

veui – ./

veui-ecomfe.vercel.app
main.veui.dev
veui-git-main-ecomfe.vercel.app
veui-demo.vercel.app

Please sign in to comment.