hof 24.0.0-vite-beta.1 → 24.0.0-vite-beta.3

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';
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.1",
4
+ "version": "24.0.0-vite-beta.3",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -94,6 +94,7 @@
94
94
  "underscore": "^1.13.7",
95
95
  "urijs": "^1.19.11",
96
96
  "uuid": "^8.3.2",
97
+ "vite": "^7.1.12",
97
98
  "winston": "^3.18.3"
98
99
  },
99
100
  "devDependencies": {
@@ -132,7 +133,6 @@
132
133
  "sinon-chai": "^3.7.0",
133
134
  "supertest": "^3.4.2",
134
135
  "travis-conditions": "0.0.0",
135
- "vite": "^7.1.12",
136
136
  "watchify": "^4.0.0",
137
137
  "webdriverio": "^4.14.4"
138
138
  },