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

Stop process all node_modules content #5

Open
boomfly opened this issue Dec 16, 2018 · 2 comments
Open

Stop process all node_modules content #5

boomfly opened this issue Dec 16, 2018 · 2 comments

Comments

@boomfly
Copy link

boomfly commented Dec 16, 2018

When i want import only one svg image from npm package, plugin process all files in node_modules.
This make impact to build/rebuild time.
How to make process only one file for example:

import BitcoinIcon from 'cryptocurrency-icons/svg/color/btc.svg'

@boomfly boomfly changed the title Dont process all node_modules content Stop process all node_modules content Dec 16, 2018
@akanix42
Copy link
Owner

You can use the .meteorignore file to filter out unwanted files: https://github.com/nathantreid/meteor-static-assets#filtering-unwanted-files
An eventual planned update for this plugin is to use the new lazy processing methods in Meteor 1.8 - once that's in place it'll still process all the images the first time through, but on subsequent runs it'll only process changed files. Unfortunately I don't have time right now to make that update.

@boomfly
Copy link
Author

boomfly commented Dec 16, 2018

But what about dependency graph of imports from javascript. Is there a way to check each file that it was imported from exact js file? I can't find that in documentation and internet.

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

2 participants