@newlogic-digital/core 2.0.3 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +8 -1
- package/package.json +5 -5
package/index.js
CHANGED
@@ -147,7 +147,9 @@ const plugin = (options = {}) => {
|
|
147
147
|
'./src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
|
148
148
|
'./src/scripts/*.{js,ts,mjs}'
|
149
149
|
]
|
150
|
-
}
|
150
|
+
}
|
151
|
+
|
152
|
+
if (userEnv.command === 'build') {
|
151
153
|
userConfig.publicDir = userConfig.publicDir ?? false
|
152
154
|
}
|
153
155
|
|
@@ -166,7 +168,12 @@ const plugin = (options = {}) => {
|
|
166
168
|
userConfig.build.outDir = outDir
|
167
169
|
}
|
168
170
|
|
171
|
+
userConfig.optimizeDeps = Object.assign({
|
172
|
+
entries: []
|
173
|
+
}, userConfig.optimizeDeps ?? {})
|
174
|
+
|
169
175
|
userConfig.build = Object.assign({
|
176
|
+
target: ['edge89', 'firefox89', 'chrome89', 'safari15'],
|
170
177
|
manifest: true,
|
171
178
|
emptyOutDir: false,
|
172
179
|
modulePreload: false,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@newlogic-digital/core",
|
3
3
|
"type": "module",
|
4
|
-
"version": "2.0.
|
4
|
+
"version": "2.0.5",
|
5
5
|
"main": "index.js",
|
6
6
|
"author": "New Logic Studio s.r.o.",
|
7
7
|
"description": "Set of tools that can be used to create modern web applications",
|
@@ -28,11 +28,11 @@
|
|
28
28
|
"picocolors": "^1.0.0"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"@types/node": "^20.
|
32
|
-
"eslint": "^8.
|
31
|
+
"@types/node": "^20.6.5",
|
32
|
+
"eslint": "^8.50.0",
|
33
33
|
"eslint-config-standard": "^17.1.0",
|
34
|
-
"typescript": "^5.
|
35
|
-
"vite": "^4.4.
|
34
|
+
"typescript": "^5.2.2",
|
35
|
+
"vite": "^4.4.9"
|
36
36
|
},
|
37
37
|
"files": [
|
38
38
|
"latte",
|