KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2023-10-24 to 1 day

JsonLoader.ts

export class JsonLoader { load(url: string, callback: (data: any) => void, errorCallback?: (error: any) => void) { const xhr = new XMLHttpRequest(); xhr.onreadystatechange = () => { if (xhr.readyState === 4) { // 4 means the request is don…

webpack.config.jsでエントリーポイントを複数

// pathモジュールの読み込み const path = require("path"); module.exports = { // モードを開発モードにする //mode: "production", mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',//"development", // 入力ファイル設定 …

"FOOTER"