Closed merksam closed 7 years ago
I'm so sorry, it was my bad, I've figured out it.
Hi,how to solve this problem?
@designersmallweb Hi, I really don't remember what was exactly the issue, but it was really mistake in code. Maybe you don't fire DefinePlugin, maybe variable you try to use in DefinePlugin is really undefined. I think I can help you if I'll see the code.
Hello guys, I have the issue with using together both of DefinePlugin and eslint-disable-next-line. I use it with webpack2, HappyPack and babel-loader. For example, I have the next DefinePlugin options:
env
comes from command line. And I use DEV like this:of course, eslint says me that "
__DEV__
is not defined" so I use next code to prevent this error:Build compiles as well, but when I open the app in browser, I have an error "
__DEV__
is not defined", when__DEV__
should betrue
orfalse
. I thought eslint-loader just watching files and says me if I made mistake, but doesn't influence the code for next loaders. Please tell if I'm doing something wrong. Thank you so much!