1
0
mirror of synced 2025-12-10 03:38:01 +08:00

build: 删除多余构建配置,构建ui

This commit is contained in:
roymondchen
2024-08-09 16:41:45 +08:00
committed by roymondchen
parent 3758cf8e0a
commit b00e7aec13
13 changed files with 55 additions and 98 deletions

View File

@@ -15,21 +15,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import path from 'path';
import { defineConfig } from 'vite';
import pkg from './package.json';
export default defineConfig({
resolve: {
alias:
process.env.NODE_ENV === 'production'
? []
: [{ find: /^@tmagic\/schema/, replacement: path.join(__dirname, '../schema/src/index.ts') }],
},
build: {
sourcemap: false,
minify: false,