webpack-conditional-loader icon indicating copy to clipboard operation
webpack-conditional-loader copied to clipboard

Ignore whitespace between comment and hash

Open daniel-white opened this issue 6 years ago • 1 comments

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.

daniel-white avatar Mar 21 '18 18:03 daniel-white

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.

perf2711 avatar Aug 09 '19 11:08 perf2711