webpack-conditional-loader
webpack-conditional-loader copied to clipboard
C conditionals directive for JavaScript
I am using define plugin to set some environment variables, The loader doesn't seem to be picking them up?
I configured as guided by the document and I debugged this plugin, found that it does have commented all matching conditional parts. However, the final bundle file does not have...
I'm conditionally using dynamic code splitting using loadable-components.com. Any way to get eslint to better handle a file that has multiple imports for the same file? I guess another way...
const sourceByLine = source.split(os.EOL) There's bug in above code that os.EOL need to be replaced by '\n'. In case in Windows system, but line is broken only with '\n', os.EOL...
Hello, This is my first attempt to use this loader but I can't make it work. I do have NODE_ENV set but still not working ``` console.log("process.env.NODE_ENV", process.env.NODE_ENV); // ->...
I posted this to [gitter](https://gitter.im/webpack/webpack?at=5e4e42a28b2d4664ef12ed25): Seems that one can't build multiple configs that depend on different ENV values. **Regarding the multi-compiler** I'm looking at issues for building client and server...
I needed specific variables passed to the loader so I could use them directly in my predicates. Here it is, fully tested and documented. I guess it's similar to #12,...
This commit let us use files with LF line endings on Windows detecting the files line endings.
I had a problem where my declarations didn't have whitespace: ``` //#if process.env.NODE_ENV !== 'production' ... //#endif ``` It would be nice if the whitespace between `//` and `#` could...
this needed for passing arguments through webpack query, for example you have 10 targets with different languages, this will let to pass lang as a query to every build //...