[Vuejs]-Vue CLI 3 – npm run serve vs serve -s dist

1👍

npm run build minifies/compacts your source, and creates a dist subfolder. Your issue is likely that IE11 isn’t able to handle the minified JS.

Minified JS looks like this:

(function(t){function e(e){for(var n,r,l=e[0],i=e[1],c=e[2],p=0,u=[];p<l.length;p++)r=l[p],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);d&&d(e);while(u.length)u.shift()();

👤iandw

Leave a comment