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

Webpack 4 prepares the values within "" #2

Open
janfleischer opened this issue Apr 24, 2018 · 0 comments
Open

Webpack 4 prepares the values within "" #2

janfleischer opened this issue Apr 24, 2018 · 0 comments

Comments

@janfleischer
Copy link

I tried to migrate webpack@3.* to webpack@4.* but the values which are given in the data object are surrounded by additional ".

Have you any idea to prevent the additional quotation marks?

The code:

const width = '900px';
const template = require('./template.html') ({ css: { width }});

The template:
<div style="width: ${scope.css.width}"></div>

The result with webpack@3.*:
<div style="width: 900px"></div>

The result with webpack@4.*:
<div style="width: \"900px\""></div>

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