Skip to content

Commit

Permalink
Merge pull request #191 from optuna/plotly-dist-min
Browse files Browse the repository at this point in the history
Use plotly.js-dist-min to reduce bundle.js.
  • Loading branch information
c-bata authored Mar 22, 2022
2 parents be9cd89 + 10b6e59 commit 5f333f6
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/GraphEdf.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/GraphHistory.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { ChangeEvent, FC, useEffect, useState } from "react"
import {
Grid,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/GraphIntermediateValues.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect } from "react"
import { Box, Grid, Typography, useTheme } from "@mui/material"
import { plotlyDarkTemplate } from "./PlotlyDarkMode"
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/GraphParallelCoordinate.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/GraphParetoFront.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { FC, useEffect, useState } from "react"
import {
Grid,
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/GraphSlice.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"
import React, { ChangeEvent, FC, useEffect, useState } from "react"
import {
Grid,
Expand Down
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/PlotlyDarkMode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as plotly from "plotly.js-dist"
import * as plotly from "plotly.js-dist-min"

// Following template is extracted from the sdist of plotly Python library.
// See https://github.com/plotly/plotly.py/blob/v5.6.0/packages/python/plotly/templategen/__init__.py and
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@mui/material": "^5.4.4",
"axios": "^0.21.2",
"notistack": "^2.0.3",
"plotly.js-dist": "^2.10.0",
"plotly.js-dist-min": "^2.11.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"alwaysStrict": true,
"outDir": "./optuna_dashboard/public/",
"paths": {
"plotly.js-dist": ["node_modules/@types/plotly.js"]
"plotly.js-dist-min": ["node_modules/@types/plotly.js"]
},
"noImplicitAny": true,
"lib": ["dom", "esnext"],
Expand Down

0 comments on commit 5f333f6

Please sign in to comment.