@nickaux/form-configurator 1.1.126 → 1.1.127

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/vite.config.js +5 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nickaux/form-configurator",
3
3
  "description": "A React form manager",
4
4
  "private": false,
5
- "version": "1.1.126",
5
+ "version": "1.1.127",
6
6
  "source": "./src/FormConfigurator/lib.package.js",
7
7
  "type": "module",
8
8
  "main": "./dist/FormConfigurator.cjs",
@@ -10,7 +10,7 @@
10
10
  "unpkg": "./dist/FormConfigurator.umd.js",
11
11
  "scripts": {
12
12
  "dev": "vite",
13
- "build": "NODE_ENV=production, microbundle --jsx=React.createElement --css-module true --css inline",
13
+ "build": "VITE_ENV=production microbundle --jsx=React.createElement --css-module true --css inline",
14
14
  "preview": "vite preview"
15
15
  },
16
16
  "dependencies": {
package/vite.config.js CHANGED
@@ -3,11 +3,16 @@ import react from "@vitejs/plugin-react"
3
3
 
4
4
  // https://vitejs.dev/config/
5
5
  export default defineConfig({
6
+ build: {
7
+ minify: true,
8
+ mode: "production", // set the mode to "production"
9
+ },
6
10
  plugins: [
7
11
  // looseEnvify({
8
12
  // NODE_ENV: "production",
9
13
  // global: true,
10
14
  // }),
15
+
11
16
  react(),
12
17
  ],
13
18