mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
Merge pull request #921 from c-bata/fix-vscode-extension-build
Fix the build of vscode extension
This commit is contained in:
@@ -109,9 +109,27 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Build rustlib for standalone_app
|
||||
working-directory: rustlib
|
||||
run: |
|
||||
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||
wasm-pack build --target web
|
||||
|
||||
- name: Setup tslib
|
||||
run: make tslib
|
||||
|
||||
- name: Build standalone_app for vscode extension
|
||||
working-directory: standalone_app
|
||||
run: |
|
||||
npm install
|
||||
npm run build:vscode
|
||||
|
||||
- name: Build standalone_app for GitHub pages
|
||||
working-directory: standalone_app
|
||||
run: |
|
||||
npm install
|
||||
npx vite build --out-dir ./gh-pages
|
||||
|
||||
- name: Build bundle.js
|
||||
working-directory: optuna_dashboard
|
||||
run: |
|
||||
|
||||
@@ -36,6 +36,12 @@ module.exports = {
|
||||
test: /\.wasm$/,
|
||||
type: "asset/inline",
|
||||
},
|
||||
{
|
||||
test: /\.m?js/,
|
||||
resolve: {
|
||||
fullySpecified: false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user