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
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'
The text was updated successfully, but these errors were encountered:
boomfly
changed the title
Dont process all node_modules content
Stop process all node_modules content
Dec 16, 2018
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.
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.
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'
The text was updated successfully, but these errors were encountered: