var data_obj = require("json-loader!./data/data.json") ... 同樣的,再將 json-loader 的使用,寫入設定檔 webpack.config.js 中,在 module.rules 中新增一條:
確定! 回上一頁