Closed xinhailishi closed 3 years ago
i think it should update const isTargetBrowser = target => target === 'web' || target === 'electron-renderer'
to
const isTargetBrowser = target => target === 'web' || target === 'electron-renderer' || target === 'node-webkit' || target === 'nwjs';
like this pr ,support node-webkit
PR merged
Do you want to request a feature, report a bug or ask a question? report a bug . What is the current behavior? when use nw,it not works. it does not inject svg to html auto. What is the expected behavior? wish to support when webpack's target is 'node-webkit' for nw.js and inject svg to html. If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code. The best way is to create repo with minimal setup to demonstrate a problem (package.json, webpack config and your code). It you don't want to create a repository - create a gist with multiple files
If this is a feature request, what is motivation or use case for changing the behavior? svg-sprite-loader-master\lib\configurator.js, const isTargetBrowser = target => target === 'web' || target === 'electron-renderer'; Please tell us about your environment: