Browse Source

feat: 构建路径修改

suzigang 2 years ago
parent
commit
a220cf2ae6
3 changed files with 4 additions and 4 deletions
  1. 1 1
      jd/copyh5.cjs
  2. 1 1
      jd/copytaro.cjs
  3. 2 2
      vite.config.ts

+ 1 - 1
jd/copyh5.cjs

@@ -66,7 +66,7 @@ const copy = async () => {
     docsConfig.nav = fromConfig.nav;
     docsConfig.docs = fromConfig.docs;
     // docsConfig.demoUrl = 'https://nutui.jd.com/3x/demo.html#';
-    docsConfig.demoUrl = 'https://nutui.jd.com/4x/demo.html#';
+    docsConfig.demoUrl = 'https://nutui.jd.com/h5/vue/4x/demo.html#';
     fse
       .writeJson(nutuiDocsConfigPath, docsConfig, {
         spaces: 2

+ 1 - 1
jd/copytaro.cjs

@@ -60,7 +60,7 @@ const copy = async () => {
     docsConfig.nav = fromConfig.nav;
     docsConfig.docs = fromConfig.docs;
     // docsConfig.demoUrl = 'https://nutui.jd.com/3x/demo.html#';
-    docsConfig.demoUrl = 'https://nutui.jd.com/vue_taro/demo/demo.html#/pages/index/index';
+    docsConfig.demoUrl = 'https://nutui.jd.com/taro/vue/4x/demo.html#/pages/index/index';
     fse
       .writeJson(nutuiDocsConfigPath, docsConfig, {
         spaces: 2

+ 2 - 2
vite.config.ts

@@ -10,7 +10,7 @@ import { compressText } from './src/sites/doc/components/demo-block/basedUtil';
 const resolve = path.resolve;
 // https://vitejs.dev/config/
 export default defineConfig({
-  base: '/4x/',
+  base: '/h5/vue/4x/',
   server: {
     port: 2023,
     host: '0.0.0.0',
@@ -88,7 +88,7 @@ export default defineConfig({
   ],
   build: {
     target: 'es2015',
-    outDir: './dist/4x/',
+    outDir: './dist/h5/vue/4x/',
     // assetsDir: config.version,
     cssCodeSplit: false,
     cssTarget: ['chrome61'],