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
Don't copy all bower_components in build process #2135
Comments
Also when using this above approach to build and then deploying PSK 2 to Firebase the process went from 3 minutes and 58 seconds to 57 seconds. Firebase deploy went from copying 2700 files to 126 files. |
For firebase deploy we use "ignore" property in firebase.json file.
|
I think in reality, we're going to have users who deploy to different possible end-points with Firebase being just one (PSK1 was most often deployed to GAE). It would be great to come up with a generic approach to this (like we had in PSK1) that avoids having to deploy thousands of files. |
@antonmoiseev thanks for pointing that out. The only problem with using |
@chuckh definitely agree, we need a generic mechanism for filtering out build assets. Just noticed you mentioned Firebase and since we had the same issue, I shared the solution that works quite well for us. In our case ignore list is not really long ~10 lines. We exclude the entire
|
@antonmoiseev thanks for sharing the ignore approach! I created this firebase.json based on your example for PSK2 deploying to Firebase.
|
Just to clarify why we include all of We can add an option to filter files after the bundling step. |
Closed by #310 |
Currently the
polymer build
process copies all bower_components files to build/bundled even though most are vulcanized. For PSK2 this lengthens the build process on my MacBook Pro Retina to 58 seconds from 18 seconds.In PSK1 we do the following:
The text was updated successfully, but these errors were encountered: