[Vuejs]-DOMException Error when trying to play audio in Vue.JS App

0👍

You should apply the rule to your webpack.config.js in order handle audio files by webpack

    module: {
        rules: [
            {
                test: /\.mp3$/,
        loader: 'file-loader',
                exclude: /node_modules(?!\/foundation-sites)|bower_components/,
                options: {
                name: '[path][name].[ext]'
            }
            }
        ]
    }

Leave a comment