Closed m4dz closed 8 years ago
@aenario I let you review and merge it. Sorry for the previous merge.
README is still not updated. I still can't build my client because I don't know how to do it.
I mean that README : https://github.com/cozy/cozy-proxy/blob/master/client/README.md
Damned! I forgot the client README :disappointed:, sorry…
@frankrousseau is it better?
What's your logic for separation between vendor/assets and app/assets ? We might as well drop the vendor folder entirely.
@m4dz That's much better. Could you make the file < 80 chars wide? At first it looks complicated but with JS, you can add carriage returns easily I think.
What's your logic for separation between vendor/assets and app/assets?
To be copied by Webpack, assets must be referenced by modules that use them. If you require / point to ressource in your module, webpack will fid it locally and pipe it to the output dir.
Some of our assets aren't referenced (favicons, mostly). But we need to copy them too. So we use 2 assets
folders: one in app
, for assets referenced by modules ; and one in vendor
which is just copied to the output dir (using the CopyPlugin). We can't mix the two folder or it'll be a mess for us and Webpack to know which assets are alreday referenced to not be copied a second time.
I first suggest to have a public folder at root level, but it brings front-end related assets outside of the client directory.
Could you make the file < 80 chars wide?
Done :smiley:
Thank you @m4dz. The Cozy Proxy client folder looks a lot cleaner now.
This PR continue #246 by:
OPTIMIZE=true
instead ofNODE_ENV=production
to switch to production build