Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The console error log does not print correctly when there is an unknown variable in the index.html template #1070

Closed
wolfstark opened this issue Nov 16, 2017 · 3 comments

Comments

@wolfstark
Copy link
Contributor

Because I accidentally annotated a code, the error log can not be printed correctly, I can not find the source of the BUG.

    new webpack.DefinePlugin({
      'process.env': require('../config/dev.env')
      // doman: JSON.stringify('http://cm.cn'),
    }), 

image
The print result I expect is below, so that I can find the problem.

error:Template execution failed: ReferenceError: doman is not defined

@LinusBorg
Copy link
Contributor

I don't understand. What does index.hyml have to do with it, or the comment in that code?

@LinusBorg LinusBorg added the bug label Nov 16, 2017
@LinusBorg
Copy link
Contributor

Okay, saw the PR and understand the issue now. Thanks!

@LinusBorg
Copy link
Contributor

merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants