Closed arbel closed 5 years ago
this is my code 'var animation = bodymovin.loadAnimation({ container: document.getElementById('ui-anim'), renderer: 'svg', loop: true, autoplay: true, path: 'images/ui.json' });'
and I have a file ui.json in my src/images folder
found a post that this should fix the issue:
{ type: 'javascript/auto', test: /\.json$/, use: [ { loader: 'file-loader', options: { name: "[name].[ext]" outputPath: 'images/', publicPath: 'images/' } } ] },
but it didn't.... very new to webpack and pipelines.
thanks
Did you figure it out? Maybe try json-loader.
Hello,
I'm using Lottie and need to refrence a json file in my script. I tried placing it a few places in my src folder but when I preview the file I get a message that the json file cannot be found. is there something else I need to do in the config so I can use json assets?