Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving production without gulp #106

Open
beaverusiv opened this issue Dec 8, 2015 · 1 comment
Open

Serving production without gulp #106

beaverusiv opened this issue Dec 8, 2015 · 1 comment

Comments

@beaverusiv
Copy link

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;
}
@beaverusiv
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant