forked from opentiny/tiny-vue
5709d26ee4
* fix(row): [layout] restore the gutter value, and add gutter demo (#1006) * fix(row): restore the gutter value, and add gutter demo * fix(row): fix e2e test * fix(dropdown): fix console warning (#1000) * fix(select): [select] Fixed an issue where a blank area is displayed when the select component uses the optimization attribute (#989) * docs(layout): fix gutter's default value (#1011) * build(internal): fix process not defined error (#991) * build(internal): fix process not defined error * build(internal): fix process not defined error * build(internal): fix process not defined error * Update transformVirtualTemplateForBuild.ts * fix(sites): demo fill the row when it is only one * fix(form): fix from valid tooltip background color (#1059) * fix(form): fix from valid tooltip background color (#1081) * build(theme): [theme] Add the index.less file package of the root directory (#1090) * fix(grid): [grid] update parentHeight before recalculate (#1142) --------- Co-authored-by: 申君健 <40288193@qq.com> Co-authored-by: gimmyhehe <975402925@qq.com> Co-authored-by: MomoPoppy <125256456+MomoPoppy@users.noreply.github.com> Co-authored-by: chenxi-20 <76168465+chenxi-20@users.noreply.github.com> |
||
---|---|---|
.. | ||
scripts | ||
src | ||
test | ||
README.md | ||
package.json | ||
tsconfig.json | ||
tsup.config.ts |
README.md
@opentiny/unplugin-virtual-template
Install
npm i @opentiny/unplugin-virtual-template
Vite
// vite.config.ts
import Starter from '@opentiny/unplugin-virtual-template/vite'
export default defineConfig({
plugins: [
Starter({ /* options */ }),
],
})
Example: playground/
Rollup
// rollup.config.js
import Starter from '@opentiny/unplugin-virtual-template/rollup'
export default {
plugins: [
Starter({ /* options */ }),
],
}
Webpack
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('@opentiny/unplugin-virtual-template/webpack')({ /* options */ })
]
}
Nuxt
// nuxt.config.js
export default {
buildModules: [
['@opentiny/unplugin-virtual-template/nuxt', { /* options */ }],
],
}
This module works for both Nuxt 2 and Nuxt Vite
Vue CLI
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('@opentiny/unplugin-virtual-template/webpack')({ /* options */ }),
],
},
}
esbuild
// esbuild.config.js
import { build } from 'esbuild'
import Starter from '@opentiny/unplugin-virtual-template/esbuild'
build({
plugins: [Starter()],
})