b13-rocket 0.8.3 → 0.8.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.
- package/package.json +9 -8
- package/src/vite/vite.config.js +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "b13-rocket",
|
|
3
3
|
"description": "FE CLI build tool",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=v16.13.0",
|
|
@@ -18,20 +18,21 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"autoprefixer": "^10.4.
|
|
21
|
+
"autoprefixer": "^10.4.20",
|
|
22
|
+
"browserslist": "^4.24.2",
|
|
22
23
|
"chalk": "^5.3.0",
|
|
23
|
-
"cssnano": "^
|
|
24
|
+
"cssnano": "^7.0.6",
|
|
24
25
|
"minimist": "^1.2.8",
|
|
25
|
-
"postcss": "^8.4.
|
|
26
|
-
"postcss-nested": "^
|
|
27
|
-
"postcss-preset-env": "^
|
|
26
|
+
"postcss": "^8.4.49",
|
|
27
|
+
"postcss-nested": "^7.0.2",
|
|
28
|
+
"postcss-preset-env": "^10.1.1",
|
|
28
29
|
"postcss-sort-media-queries": "^5.2.0",
|
|
29
30
|
"sass": "^1.75.0",
|
|
30
31
|
"sharp": "^0.32.6",
|
|
31
32
|
"svgo": "^3.2.0",
|
|
32
33
|
"tsconfig": "^7.0.0",
|
|
33
|
-
"vite": "^5.
|
|
34
|
-
"vite-plugin-image-optimizer": "^1.1.
|
|
34
|
+
"vite": "^5.4.11",
|
|
35
|
+
"vite-plugin-image-optimizer": "^1.1.8",
|
|
35
36
|
"vite-plugin-require-support": "^1.6.1",
|
|
36
37
|
"vite-svg-loader": "^4.0.0"
|
|
37
38
|
},
|
package/src/vite/vite.config.js
CHANGED
|
@@ -6,8 +6,10 @@ import postcssPresetEnv from 'postcss-preset-env';
|
|
|
6
6
|
import svgLoader from 'vite-svg-loader';
|
|
7
7
|
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
|
|
8
8
|
import path from 'node:path';
|
|
9
|
+
import browserslist from 'browserslist';
|
|
9
10
|
|
|
10
11
|
const mode = 'production';
|
|
12
|
+
const browserslistConfig = browserslist.loadConfig({ path: process.cwd() }) ?? browserslist.defaults
|
|
11
13
|
|
|
12
14
|
export const defaultViteConfig = defineConfig({
|
|
13
15
|
mode,
|
|
@@ -42,7 +44,7 @@ export const defaultViteConfig = defineConfig({
|
|
|
42
44
|
postcss: {
|
|
43
45
|
plugins: [
|
|
44
46
|
nested(),
|
|
45
|
-
postcssPresetEnv(),
|
|
47
|
+
postcssPresetEnv({ browsers: browserslistConfig.join(' and ') }),
|
|
46
48
|
postcssSortMediaQueries(),
|
|
47
49
|
autoprefixer({}),
|
|
48
50
|
],
|