Skip to content

Releases: Colourlessglow/preview-serve

0.1.0-beta.3

12 Jun 02:22

Choose a tag to compare

0.1.0-beta.3 Pre-release
Pre-release

v0.1.0-beta.3

compare changes

🚀 特性

  • dep: Replace dep mime with mrmime for faster execution and smaller size (4e512e8)

❤️ 贡献者

0.0.3

12 Jun 02:09

Choose a tag to compare

v0.0.3

compare changes

🚀 特性

  • dep: Replace dep mime with mrmime for faster execution and smaller size (2833405)

📖 文档

🏡 框架

❤️ 贡献者

0.1.0-beta.2

11 Jun 18:50

Choose a tag to compare

0.1.0-beta.2 Pre-release
Pre-release

v0.1.0-beta.2

compare changes

🚀 特性

  • ⚠️ 删除 cli baseURL 选项 (1320888)

🏡 框架

🚨 破坏性改动

  • ⚠️ 删除 cli baseURL 选项 (1320888)

❤️ 贡献者

0.1.0-beta.1

11 Jun 18:41

Choose a tag to compare

0.1.0-beta.1 Pre-release
Pre-release

v0.1.0-beta.1

compare changes

💅 重构

  • ⚠️ 使用 h3 v2-beta 重写 (12ed542)

📖 文档

  • Add jsr badges in README.md (96c3b17)

🏡 框架

🚨 破坏性改动

  • ⚠️ 使用 h3 v2-beta 重写 (12ed542)

❤️ 贡献者

0.0.2

28 May 02:36

Choose a tag to compare

v0.0.2

compare changes

📖 文档

🏡 框架

  • Add jsr registry config (cd1853f)
  • Add jsr publish github actions (1682e8c)

❤️ 贡献者

0.0.1

21 May 16:41

Choose a tag to compare

preview-serve

npm version
npm downloads
bundle size
install size
license

web打包目录预览服务

安装

# ✨ Auto-detect
npx nypm install preview-serve

# npm
npm install preview-serve

# yarn
yarn add preview-serve

# pnpm
pnpm install preview-serve

# bun
bun install preview-serve

# deno
deno install preview-serve

配置

import { defineConfig } from 'preview-serve'

export default defineConfig({
  /**
   * 服务监听地址
   */
  hostname: '127.0.0.1',
  /**
   * 服务监听端口
   */
  port: 3000,
  /**
   * 服务基础路径
   */
  base: '/',
  /**
   * web 打包目录
   */
  dist: 'dist',
  proxy: {
    /**
     * 代理配置,详见 [httpxy](https://github.com/unjs/httpxy)
     */
    '/gh': {
      target: ' https://ungh.cc',
      changeOrigin: true,
    }
  }
})

命令

preview-serve --dist dist --base /

贡献者

Published under the MIT license.
Made by @Colourlessglow and community 💛






🤖 auto updated with automd