webpack-conditional-loader
webpack-conditional-loader copied to clipboard
Ignore whitespace between comment and hash
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 be ignored.
This problem also happened in my code. Removing the spaces fixed the problem. However, in the README the conditionals are clearly written with a space before them. So, if even this cannot be changed, at least it would be nice to update the README.