add string plugin

This commit is contained in:
AceDataCloud committed 2021-08-28 02:20:05 +08:00
1 parent ebd5c1cecd
commit df9ac27be6
4 files changed
+25 -1

No files matched your search

+4
View File
@@ -3,6 +3,7 @@ import vue from '@vitejs/plugin-vue';
import * as path from 'path';
import replace from '@rollup/plugin-replace';
import pkg from './package.json';
import { string } from 'rollup-plugin-string';
export default defineConfig({
server: {
@@ -15,6 +16,9 @@ export default defineConfig({
},
plugins: [
vue(),
string({
include: ['**/*.md', '**/*.theme', 'highlight.js/styles/*.css']
}),
replace({
preventAssignment: true,
VDITOR_VERSION: JSON.stringify(pkg.dependencies.vditor.replace(/^[\^\~]/g, '')),