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
Sometimes you will be loading e.g. css files from an npm package, and those need to be converted so they cannot be external. This is what I came up with:
nodeExternals({// load non-javascript files with extensions, presumably via loaderswhitelist: [/\.(?!(js|json)$).{1,5}$/i],}),
That assumes that anything that has a max-5-char extension but is not js or json, will need to be parsed as an internal module.
Is this the best way? If so, perhaps put it in the Readme?
The text was updated successfully, but these errors were encountered:
Sometimes you will be loading e.g. css files from an npm package, and those need to be converted so they cannot be external. This is what I came up with:
That assumes that anything that has a max-5-char extension but is not js or json, will need to be parsed as an internal module.
Is this the best way? If so, perhaps put it in the Readme?
The text was updated successfully, but these errors were encountered: