hof 24.0.0-vite-beta.7 → 24.0.0-vite-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,9 +6,8 @@ import { resolve } from 'path';
|
|
|
6
6
|
import fs from 'fs';
|
|
7
7
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
8
8
|
import commonjs from '@rollup/plugin-commonjs';
|
|
9
|
-
const projectRoot = process.cwd();
|
|
10
|
-
const publicDir = resolve(projectRoot, 'public');
|
|
11
9
|
|
|
10
|
+
const publicDirectory = resolve(process.cwd(), 'public');
|
|
12
11
|
const entryFile = (() => {
|
|
13
12
|
const src = resolve(process.cwd(), 'assets/js/index.js');
|
|
14
13
|
if (fs.existsSync(src)) return src;
|
|
@@ -47,10 +46,9 @@ export default defineConfig({
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
],
|
|
50
|
-
target: 'es2018', // ensures browser-compatible output
|
|
51
49
|
base: '/assets/',
|
|
52
50
|
build: {
|
|
53
|
-
outDir:
|
|
51
|
+
outDir: publicDirectory,
|
|
54
52
|
emptyOutDir: false,
|
|
55
53
|
rollupOptions: {
|
|
56
54
|
input: {
|