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

Unable to access VARIABLE inside index.html file #12

Open
skirankumar7 opened this issue Sep 3, 2019 · 0 comments
Open

Unable to access VARIABLE inside index.html file #12

skirankumar7 opened this issue Sep 3, 2019 · 0 comments

Comments

@skirankumar7
Copy link

skirankumar7 commented Sep 3, 2019

I am not able to access my variable provided in the plugin like this

new InterpolateHtmlPlugin({
            MYVAR: 'myvariable',
}),

Here I am accessing variable like this
I want inside script like this

<script type="text/javascript">
if(%MYVAR%) {
do something
}
</script>

software version
windows 10
browser chrome 76.0.3809.132
webpack 4
react 16+

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

No branches or pull requests

1 participant