Skip to content

Webpack 4 prepares the values within "" #2

@janfleischer

Description

@janfleischer

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions