mirror of https://github.com/vuejs/core.git
chore: use git default short commit-id (#7761)
This commit is contained in:
parent
712f96d6ac
commit
21a89af9e6
|
|
@ -4,7 +4,7 @@ import { defineConfig, Plugin } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import { execaSync } from 'execa'
|
import { execaSync } from 'execa'
|
||||||
|
|
||||||
const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
|
const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ const sourceMap = args.sourcemap || args.s
|
||||||
const isRelease = args.release
|
const isRelease = args.release
|
||||||
const buildAllMatching = args.all || args.a
|
const buildAllMatching = args.all || args.a
|
||||||
const writeSize = args.size
|
const writeSize = args.size
|
||||||
const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7)
|
const commit = execaSync('git', ['rev-parse', '--short=7', 'HEAD']).stdout
|
||||||
|
|
||||||
const sizeDir = path.resolve('temp/size')
|
const sizeDir = path.resolve('temp/size')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue