- 实现网页内容提取并导出为Markdown文件 - 支持自动识别和手动选择区域两种提取模式 - 使用Mozilla Readability算法提取页面主要内容 - 使用Turndown将HTML转换为Markdown - React + Vite + TypeScript 技术栈 - 支持图片URL保留、复制到剪贴板、直接下载 Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { chromeExtension } from '@crxjs/vite-plugin'
|
|
import manifest from './manifest.json'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
chromeExtension({ manifest }),
|
|
],
|
|
build: {
|
|
outDir: 'dist',
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'index.html',
|
|
},
|
|
},
|
|
},
|
|
})
|