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
{{ message }}
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
However, the vulcanize step reads in lots of files into both index-csp.html and index-csp.js. So, while those files are still in build/ somewhere (mostly in build/bower_components/, but also our own polymer elements have been inlined) and so those files are no longer needed.
So, it would be really nice to be able to somehow remove those files so they're not included in the app.
Is it possible that grunt-vulcanize somehow 'output' a list of files to remove, or perhaps have an option to remove any files it inlines?
It sounds plausible, but there are plenty of other files that aren't needed too. Just take the bower_components/paper_button/ directory - I see .bower.json, README.md, bower.json, demo.html, demo2.html, index.html and metadata.html, as well as, paper-button.html. IINM, I still need the css file, so I can't remove that. I noticed a closed issue that talked about concatenating those - that's not possible, but it is possible to add each individual css back into its corresponding html file, I presume, which might mean we can remove the whole bower_components/paper-button/ directory after running vulcanize. I do see the 'inline' option but that also does script - perhaps there could be an option for just style.
Anyway, I'm not sure what the 'correct' solution is to this problem. Perhaps there's a better way of building which avoids the problem to begin with.
Thoughts?
The text was updated successfully, but these errors were encountered:
My Gruntfile.js works like this :
It's a bit long-winded, but it works.
However, the vulcanize step reads in lots of files into both index-csp.html and index-csp.js. So, while those files are still in build/ somewhere (mostly in build/bower_components/, but also our own polymer elements have been inlined) and so those files are no longer needed.
So, it would be really nice to be able to somehow remove those files so they're not included in the app.
Is it possible that grunt-vulcanize somehow 'output' a list of files to remove, or perhaps have an option to remove any files it inlines?
It sounds plausible, but there are plenty of other files that aren't needed too. Just take the bower_components/paper_button/ directory - I see .bower.json, README.md, bower.json, demo.html, demo2.html, index.html and metadata.html, as well as, paper-button.html. IINM, I still need the css file, so I can't remove that. I noticed a closed issue that talked about concatenating those - that's not possible, but it is possible to add each individual css back into its corresponding html file, I presume, which might mean we can remove the whole bower_components/paper-button/ directory after running vulcanize. I do see the 'inline' option but that also does script - perhaps there could be an option for just style.
Anyway, I'm not sure what the 'correct' solution is to this problem. Perhaps there's a better way of building which avoids the problem to begin with.
Thoughts?
The text was updated successfully, but these errors were encountered: