[Vuejs]-How to import JSON from Storage Folder in VUE using Laravel?

0👍

You can use webpack resolve in webpack.mix.js

mix.webpackConfig({
    resolve: {
       alias: {
           "@": path.resolve(
               __dirname,
               "your_path_to_source_folder"
           )
       }
    }
});

and then in component

<script>
   import list from '@/storage/app/public/json/listofcuisines_en.json';
   export default {}
</script>

Leave a comment