feat(aklive2d): no hashing for filename, no hassle for my life
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.0.4
|
1.0.9
|
||||||
@@ -112,6 +112,7 @@ class ViteRunner {
|
|||||||
get #operatorConfig() {
|
get #operatorConfig() {
|
||||||
const operatorName = process.env.O || process.argv[3]
|
const operatorName = process.env.O || process.argv[3]
|
||||||
assert(operatorName, 'Please set the operator name by using environment variable O.')
|
assert(operatorName, 'Please set the operator name by using environment variable O.')
|
||||||
|
const assetsDir = 'assets'
|
||||||
return {
|
return {
|
||||||
...this.#baseViteConfig,
|
...this.#baseViteConfig,
|
||||||
envDir: path.join(__projetRoot, this.#globalConfig.folder.operator, operatorName),
|
envDir: path.join(__projetRoot, this.#globalConfig.folder.operator, operatorName),
|
||||||
@@ -130,6 +131,13 @@ class ViteRunner {
|
|||||||
...this.#baseViteConfig.build,
|
...this.#baseViteConfig.build,
|
||||||
chunkSizeWarningLimit: 10000,
|
chunkSizeWarningLimit: 10000,
|
||||||
outDir: path.resolve(__projetRoot, this.#globalConfig.folder.release, operatorName),
|
outDir: path.resolve(__projetRoot, this.#globalConfig.folder.release, operatorName),
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
entryFileNames: `${assetsDir}/[name].js`,
|
||||||
|
chunkFileNames: `${assetsDir}/[name].js`,
|
||||||
|
assetFileNames: `${assetsDir}/[name].[ext]`,
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -167,6 +175,7 @@ class ViteRunner {
|
|||||||
]), path.join(directoryDir, '.env'))
|
]), path.join(directoryDir, '.env'))
|
||||||
this.#mode = process.argv[3]
|
this.#mode = process.argv[3]
|
||||||
const publicDir = path.resolve(__projetRoot, this.#globalConfig.folder.release)
|
const publicDir = path.resolve(__projetRoot, this.#globalConfig.folder.release)
|
||||||
|
const assetsDir = '_directory'
|
||||||
return {
|
return {
|
||||||
...this.#baseViteConfig,
|
...this.#baseViteConfig,
|
||||||
envDir: directoryDir,
|
envDir: directoryDir,
|
||||||
@@ -193,9 +202,11 @@ class ViteRunner {
|
|||||||
build: {
|
build: {
|
||||||
...this.#baseViteConfig.build,
|
...this.#baseViteConfig.build,
|
||||||
outDir: path.resolve(__projetRoot, this.#globalConfig.folder.release),
|
outDir: path.resolve(__projetRoot, this.#globalConfig.folder.release),
|
||||||
assetsDir: '_directory',
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
|
entryFileNames: `${assetsDir}/[name].js`,
|
||||||
|
chunkFileNames: `${assetsDir}/[name].js`,
|
||||||
|
assetFileNames: `${assetsDir}/[name].[ext]`,
|
||||||
manualChunks: {
|
manualChunks: {
|
||||||
'react': ['react', 'react-dom', 'react-router-dom'],
|
'react': ['react', 'react-dom', 'react-router-dom'],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user