Skip to content

Commit

Permalink
fix: fetch plotly from own server instead of CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
sf-v committed Apr 25, 2023
1 parent 47eac9c commit e983da2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
11 changes: 10 additions & 1 deletion packages/@best/frontend/lwc-services.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
// Find the full example of all available configuration options at
// https://github.com/muenzpraeger/create-lwc-app/blob/main/packages/lwc-services/example/lwc-services.config.js
module.exports = {
resources: [{ from: 'src/resources/', to: 'dist/resources/' }],
moduleDir: './src/modules',
resources: [
{
from: 'src/resources/',
to: 'dist/resources/',
},
{
from: '../../../node_modules/plotly.js-basic-dist-min/plotly-basic.min.js',
to: 'dist/plotly.min.js',
},
],
};
7 changes: 4 additions & 3 deletions packages/@best/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
"express": "4.18.2",
"jsonwebtoken": "9.0.0",
"lwc-services": "3.2.2",
"plotly.js-basic-dist-min": "2.21.0",
"query-string": "^7.1.1",
"redux": "^4.0.5",
"redux-thunk": "^2.4.1",
"rollup": "^2.38.0",
"redux": "^4.0.5",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.3",
"rollup-plugin-terser": "^7.0.2"
"rollup-plugin-terser": "^7.0.2",
"rollup": "^2.38.0"
},
"devDependencies": {
"@lwc/eslint-plugin-lwc": "1.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@best/frontend/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</style>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="shortcut icon" href="/resources/favicon.ico">
<script src="https://cdn.plot.ly/plotly-1.48.1.min.js"></script>
<script src="./plotly.min.js"></script>
</head>
<body>
<view-app></view-app>
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14372,6 +14372,11 @@ please-upgrade-node@^3.1.1:
dependencies:
semver-compare "^1.0.0"

plotly.js-basic-dist-min@2.21.0:
version "2.21.0"
resolved "https://registry.yarnpkg.com/plotly.js-basic-dist-min/-/plotly.js-basic-dist-min-2.21.0.tgz#eb4f4519fe912522df2c010e61be3cf2092a53ce"
integrity sha512-+Bwe1aOEZh14OYi37SSWtLAI3umuJO61HVLyMZcT748vkjhTX0tqzAF5y1v0q/AZd7rHMMzO+VinqIDqvqpxcQ==

portfinder@^1.0.26:
version "1.0.28"
resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.28.tgz#67c4622852bd5374dd1dd900f779f53462fac778"
Expand Down

0 comments on commit e983da2

Please sign in to comment.