[Vuejs]-How to import json file in current vue default setup?

3👍

tsconfig.json is used when you use TypeScript.
If you used the Vue CLI to build your program, it should come with Webpack.
With webpack => 2.0.0, json-loader comes by default, so you can load .json files directly with

import jsonObject from '/path/to/file.json';

Leave a comment