Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 293e110

Browse files
committed
fix: fix replace MAIN_RESOURCE_CDN
1 parent 04a46de commit 293e110

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎packages/plugin-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/console-toolkit-plugin-react",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "console toolkit plugin for base react app",
55
"main": "lib/index.js",
66
"scripts": {

‎packages/plugin-react/src/webpack/plugins/htmlInject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class HtmlInjectPlugin {
101101
if (data.html) {
102102
const oneHtmlPath = path.resolve(compiler.options.output?.path || '', 'one.html');
103103
fs.ensureFileSync(oneHtmlPath);
104-
fs.writeFileSync(oneHtmlPath, data.html.replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}.com'));
104+
fs.writeFileSync(oneHtmlPath, data.html.replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}'));
105105
}
106106

107107
callback();

‎packages/plugin-webpack5-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/console-toolkit-plugin-webpack5-react",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "console toolkit plugin for base react app",
55
"main": "lib/index.js",
66
"scripts": {

‎packages/plugin-webpack5-react/src/webpack/plugins/htmlInject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class HtmlInjectPlugin {
9292
if (data.html) {
9393
const oneHtmlPath = path.resolve(compilation.options.output.path || '', 'one.html');
9494
fs.ensureFileSync(oneHtmlPath);
95-
fs.writeFileSync(oneHtmlPath, data.html.replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}.com'));
95+
fs.writeFileSync(oneHtmlPath, data.html.replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}'));
9696
}
9797

9898
callback();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /