提交 e5130406 编写于 作者: richard_1015's avatar richard_1015

chore: gh-pages modify

上级 768a234c
......@@ -16,4 +16,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
\ No newline at end of file
publish_dir: ./dist/3x
\ No newline at end of file
......@@ -6,6 +6,4 @@
**/*.woff
**/*.eot
package.json
lib/plugin/cli/site/doc/page
lib/plugin/cli/site/doc/view
node_modules
......@@ -39,10 +39,11 @@
"checked": "npm run generate:file && rm -rf dist/ && tsc",
"dev": "npm run checked && vite --open",
"build:site": "npm run checked && vite build",
"build:site:oss": "npm run checked && vite build --base=/nutui/3x/",
"build": "npm run checked && vite build --config vite.config.build.ts && npm run generate:types",
"build:disperse": "vite build --config vite.config.build.disperse.ts",
"serve": "vite preview",
"upload": "yarn build:site && node ./jd/upload.js",
"upload": "yarn build:site:oss && node ./jd/upload.js",
"add": "node jd/createComponentMode.js",
"publish:beta": "npm publish --tag=beta",
"generate:file": "node jd/generate-nutui.js",
......
......@@ -5,7 +5,7 @@ import path from 'path';
const resolve = path.resolve;
// https://vitejs.dev/config/
export default defineConfig({
base: '/nutui/3x/',
base: '/3x/',
server: {
proxy: {
'/devServer': {
......@@ -34,6 +34,7 @@ export default defineConfig({
Markdown()
],
build: {
outDir: './dist/3x/',
cssCodeSplit: false,
rollupOptions: {
input: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册