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 89361b0

Browse files
committed
chore: output idpt.html
1 parent b70477d commit 89361b0

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
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.1",
3+
"version": "1.5.2",
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ class HtmlInjectPlugin {
100100
compilation.hooks.htmlWebpackPluginAfterHtmlProcessing.tapAsync('HtmlInjectPlugin', (data, callback) => {
101101
if (data.html) {
102102
const oneHtmlPath = path.resolve(compiler.options.output?.path || '', 'one.html');
103+
const idptHtmlPath = path.resolve(compiler.options.output?.path || '', 'idpt.html');
103104
fs.ensureFileSync(oneHtmlPath);
105+
fs.ensureFileSync(idptHtmlPath);
104106
fs.writeFileSync(oneHtmlPath, data.html.replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}'));
107+
fs.writeFileSync(idptHtmlPath, data.html.replace(/dev\.g\.alicdn\.com/g, 'dev-g.{{{MAIN_RESOURCE_CDN}}}').replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}'));
105108
}
106109

107110
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.1",
3+
"version": "1.4.2",
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,12 @@ class HtmlInjectPlugin {
9090
// @ts-ignore
9191
HtmlWebpackPlugin.getHooks(compilation).beforeEmit.tapAsync('HtmlInjectPlugin', (data, callback) => {
9292
if (data.html) {
93-
const oneHtmlPath = path.resolve(compilation.options.output.path || '', 'one.html');
93+
const oneHtmlPath = path.resolve(compiler.options.output?.path || '', 'one.html');
94+
const idptHtmlPath = path.resolve(compiler.options.output?.path || '', 'idpt.html');
9495
fs.ensureFileSync(oneHtmlPath);
96+
fs.ensureFileSync(idptHtmlPath);
9597
fs.writeFileSync(oneHtmlPath, data.html.replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}'));
98+
fs.writeFileSync(idptHtmlPath, data.html.replace(/dev\.g\.alicdn\.com/g, 'dev-g.{{{MAIN_RESOURCE_CDN}}}').replace(/\.alicdn.com/g, '.{{{MAIN_RESOURCE_CDN}}}'));
9699
}
97100

98101
callback();

0 commit comments

Comments
(0)

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