Entries from 2023-10-24 to 1 day
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…
// pathモジュールの読み込み const path = require("path"); module.exports = { // モードを開発モードにする //mode: "production", mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',//"development", // 入力ファイル設定 …