You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up my site to be served with nginx. Currently if I run gulp dist it works fine and I get a folder with a bunch of minified js and css, but there is no index.html or anything. Do I have to manually copy src/app/index.html and manually copy in the css/js file srcs?
My ngnix config so far:
server {
listen 80;
server_name portal.whatever.biz;
root /var/sites/portal.whatever.biz/frontend/dist;
}
The text was updated successfully, but these errors were encountered:
Ok, so gulp dist was failing on importing Google Font and halting the script.
I have fixed it by adding the option { processImportFrom: ['!fonts.googleapis.com'] } to g.minifyCss.
In order to do this I have split dist() into distCSS() and distJS(). If there is a more elegant way of changing line 353 in the gulpfile let me know and I'll do it that way. I'll submit a PR when I get a reply.
I am trying to set up my site to be served with nginx. Currently if I run gulp dist it works fine and I get a folder with a bunch of minified js and css, but there is no index.html or anything. Do I have to manually copy src/app/index.html and manually copy in the css/js file srcs?
My ngnix config so far:
The text was updated successfully, but these errors were encountered: