tiny-vue/internals/unplugin-virtual-template
ajaxzheng 5709d26ee4
fix(components): fix some bugs (#1148)
* 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>
2023-12-15 15:20:45 +08:00
..
scripts feat: add dialog-select and refactor sites (#378) 2023-08-11 16:40:06 +08:00
src fix(components): fix some bugs (#1148) 2023-12-15 15:20:45 +08:00
test feat: add dialog-select and refactor sites (#378) 2023-08-11 16:40:06 +08:00
README.md Refactor project to Monorepo and TypeScript (#90) 2023-03-28 20:37:18 +08:00
package.json feat: support react and add new components: rich-text-editor/color-picker/divider/calendar-view 2023-10-11 04:04:12 -07:00
tsconfig.json Refactor project to Monorepo and TypeScript (#90) 2023-03-28 20:37:18 +08:00
tsup.config.ts feat: add dialog-select and refactor sites (#378) 2023-08-11 16:40:06 +08:00

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()],
})