vue部署在nginx运行后报Uncaught SyntaxError: Unexpected token ‘<‘
在nginx.conf中需要加上以下location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${expires30d;}location ~ .*\.(js|css)?${expires12h;}location ~ /\.{deny all;
·
在nginx.conf中需要加上以下
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
更多推荐



所有评论(0)