hof 24.0.0-vite-beta.2 → 24.0.0-vite-beta.4

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.
@@ -8,9 +8,9 @@ const hofDefaults = require('../../../config/hof-defaults');
8
8
  module.exports = config => {
9
9
  // The config.production’s value is set up with a command flag
10
10
  // in the package.json’s script. process.env.NODE_ENV);
11
- console.log('Vite build - production:', config.production, 'env: ',config.env);
11
+ console.log('Vite build - production:', config.production, 'env: ', config.env);
12
12
  console.log('hofDefaults:', hofDefaults);
13
-
13
+
14
14
  // if (config.production === true) {
15
15
  // return vite.build({
16
16
  // configFile: viteConfig
@@ -23,18 +23,17 @@ module.exports = config => {
23
23
  // mode: 'development'
24
24
  // });
25
25
  process.env.NODE_ENV = hofDefaults.env;
26
-
27
- if(!config.production){
28
- console.log('Vite build - expecting development/local:', process.env.NODE_ENV);
29
- return vite.build({
30
- configFile: viteConfig,
31
- mode: 'development'
32
- });
33
- } else{
26
+
27
+ if(!config.production) {
28
+ console.log('Vite build - expecting development/local:', process.env.NODE_ENV);
29
+ return vite.build({
30
+ configFile: viteConfig,
31
+ mode: 'development'
32
+ });
33
+ }
34
34
  console.log('Vite build - expecting production:', process.env.NODE_ENV);
35
35
  return vite.build({
36
- configFile: viteConfig
36
+ configFile: viteConfig
37
37
  });
38
- }
39
- }
38
+ };
40
39
  module.exports.task = 'vite';
@@ -8,7 +8,7 @@ const __dirname = import.meta.dirname;
8
8
  export default defineConfig({
9
9
  root: '../../../frontend',
10
10
  build: {
11
- outDir: '../public/assets',
11
+ outDir: resolve(__dirname, '../../../../public/assets'),
12
12
  emptyOutDir: true,
13
13
  rollupOptions: {
14
14
  input: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "24.0.0-vite-beta.2",
4
+ "version": "24.0.0-vite-beta.4",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",