未验证 提交 a98f0a24 编写于 作者: X xiaoyatong 提交者: GitHub

feat: 增加 Taro 多端输出路径。 (#286)

上级 34ceb1ce
......@@ -63,6 +63,7 @@
"generate:file:taro:pages": "node scripts/taro/generate-taro-pages.js",
"dev:taro:weapp": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:weapp",
"dev:taro:jd": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:jd",
"dev:taro:h5": "npm run checked:taro && npm run generate:file:taro:pages && cd ./src/sites/mobile-taro && npm run dev:h5",
"replace:taro:types": "node scripts/taro/replace-taro-types-alias.js",
"build:taro:es": "npx rollup -c rollup.config.taro.es.js",
"build:taro": "npm run checked:taro && vite build --config vite.config.build.taro.ts && npm run build:taro:es && npm run build:css && npm run build:loader-style && npm --taro run build:dts && npm run build:locales",
......
......@@ -10,7 +10,7 @@ const config = {
375: 2 / 1,
},
sourceRoot: 'src',
outputRoot: 'dist',
outputRoot: `dist/${process.env.TARO_ENV}`,
plugins: ['@tarojs/plugin-html'],
alias: {
react: path.resolve(__dirname, '../../../../node_modules/react'),
......@@ -65,6 +65,8 @@ const config = {
generateScopedName: '[name]__[local]___[hash:base64:5]',
},
},
// 自定义 Webpack 配置
devServer: {},
},
},
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册