You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/21 03:04:54 UTC
[echarts-examples] branch gh-pages updated: fix example code load.
fix build
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new e8cb36f fix example code load. fix build
e8cb36f is described below
commit e8cb36fd49ddd6f632f0c95fa4da5fc0d3d0a62b
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Sep 21 10:53:10 2021 +0800
fix example code load. fix build
---
package.json | 4 ++--
src/common/store.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package.json b/package.json
index 9203772..28fb773 100644
--- a/package.json
+++ b/package.json
@@ -5,8 +5,8 @@
"scripts": {
"build": "npx webpack --config build/webpack.config.js --mode production",
"watch": "npx webpack --config build/webpack.config.js --mode development --devtool source-map --watch",
- "localsite": "npm run compile:example || npm run build && node build/copyResource.js --env localsite",
- "release": "npm run compile:example || npm run build && node build/copyResource.js --env asf",
+ "localsite": "npm run compile:example && npm run build && node build/copyResource.js --env localsite",
+ "release": "npm run compile:example && npm run build && node build/copyResource.js --env asf",
"dev": "npx concurrently --kill-others \"npm:watch\" \"npm:server\"",
"build:example": "npm run compile:example && node tool/build-example.js && node tool/build-example.js --gl",
"compile:example": "node tool/compile-example.js",
diff --git a/src/common/store.js b/src/common/store.js
index 20a6d2b..0a663f5 100644
--- a/src/common/store.js
+++ b/src/common/store.js
@@ -77,7 +77,7 @@ export function loadExampleCode() {
const glFolder = URL_PARAMS.gl ? 'gl/' : '';
const lang = store.typeCheck ? 'ts' : 'js';
$.ajax(
- `${store.cdnRoot}examples/${lang}/${glFolder}${URL_PARAMS.c}.${lang}?_v_${store.version}`,
+ `${store.cdnRoot}/examples/${lang}/${glFolder}${URL_PARAMS.c}.${lang}?_v_${store.version}`,
{
dataType: 'text',
success: (data) => {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org