@modern-js/main-doc 0.0.0-nightly-20241017170647 → 0.0.0-nightly-20241019170723
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.
@@ -20,6 +20,7 @@ type DistPathConfig = {
|
|
20
20
|
media?: string;
|
21
21
|
server?: string;
|
22
22
|
worker?: string;
|
23
|
+
assets?: string;
|
23
24
|
};
|
24
25
|
```
|
25
26
|
|
@@ -36,6 +37,7 @@ const defaultDistPath = {
|
|
36
37
|
image: 'static/image',
|
37
38
|
media: 'static/media',
|
38
39
|
js: 'static/js',
|
40
|
+
assets: 'static/assets',
|
39
41
|
};
|
40
42
|
```
|
41
43
|
|
@@ -18,6 +18,7 @@ type FilenameConfig = {
|
|
18
18
|
font?: string;
|
19
19
|
image?: string;
|
20
20
|
media?: string;
|
21
|
+
assets?: string;
|
21
22
|
};
|
22
23
|
```
|
23
24
|
|
@@ -33,6 +34,7 @@ const devDefaultFilename = {
|
|
33
34
|
font: '[name].[contenthash:8][ext]',
|
34
35
|
image: '[name].[contenthash:8][ext]',
|
35
36
|
media: '[name].[contenthash:8][ext]',
|
37
|
+
assets: '[name].[contenthash:8][ext]',
|
36
38
|
};
|
37
39
|
|
38
40
|
// Production mode
|
@@ -44,6 +46,7 @@ const prodDefaultFilename = {
|
|
44
46
|
font: '[name].[contenthash:8][ext]',
|
45
47
|
image: '[name].[contenthash:8][ext]',
|
46
48
|
media: '[name].[contenthash:8][ext]',
|
49
|
+
assets: '[name].[contenthash:8][ext]',
|
47
50
|
};
|
48
51
|
```
|
49
52
|
|
@@ -20,6 +20,7 @@ type DistPathConfig = {
|
|
20
20
|
media?: string;
|
21
21
|
server?: string;
|
22
22
|
worker?: string;
|
23
|
+
assets?: string;
|
23
24
|
};
|
24
25
|
```
|
25
26
|
|
@@ -36,6 +37,7 @@ const defaultDistPath = {
|
|
36
37
|
image: 'static/image',
|
37
38
|
media: 'static/media',
|
38
39
|
js: 'static/js',
|
40
|
+
assets: 'static/assets',
|
39
41
|
};
|
40
42
|
```
|
41
43
|
|
@@ -18,6 +18,7 @@ type FilenameConfig = {
|
|
18
18
|
font?: string;
|
19
19
|
image?: string;
|
20
20
|
media?: string;
|
21
|
+
assets?: string;
|
21
22
|
};
|
22
23
|
```
|
23
24
|
|
@@ -33,6 +34,7 @@ const devDefaultFilename = {
|
|
33
34
|
font: '[name].[contenthash:8][ext]',
|
34
35
|
image: '[name].[contenthash:8][ext]',
|
35
36
|
media: '[name].[contenthash:8][ext]',
|
37
|
+
assets: '[name].[contenthash:8][ext]',
|
36
38
|
};
|
37
39
|
|
38
40
|
// 生产模式构建
|
@@ -44,6 +46,7 @@ const prodDefaultFilename = {
|
|
44
46
|
font: '[name].[contenthash:8][ext]',
|
45
47
|
image: '[name].[contenthash:8][ext]',
|
46
48
|
media: '[name].[contenthash:8][ext]',
|
49
|
+
assets: '[name].[contenthash:8][ext]',
|
47
50
|
};
|
48
51
|
```
|
49
52
|
|
package/package.json
CHANGED
@@ -15,14 +15,14 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "0.0.0-nightly-
|
18
|
+
"version": "0.0.0-nightly-20241019170723",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
21
|
"access": "public",
|
22
22
|
"provenance": true
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@modern-js/sandpack-react": "0.0.0-nightly-
|
25
|
+
"@modern-js/sandpack-react": "0.0.0-nightly-20241019170723"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"@rspress/shared": "1.31.1",
|