Use the build step to extract the built-in resources for file sharing - something like gulp-html-extract .
Once you extract the source, you can process it separately.
Then you would use a tool like Vulcanize to reinsert your styles into your main component.
source share