Skip to content

Document webpack change: Feat webpack ignore #7430

@webpack-bot

Description

@webpack-bot

A pull request by @alexander-akait was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#18867


What kind of change does this PR introduce?

feature

We do not support (due performance reasons), but css-loader - yes:

/* webpackIgnore: true */
@import url(./basic.css);

.class {
	color: red;
	/* webpackIgnore: true */
	background: url("./url/img.png");
}

Also https://webpack.js.org/plugins/ignore-plugin/ works fine with CSS

Did you add tests for your changes?

Yes

Does this PR introduce a breaking change?

No

What needs to be documented once your changes are merged?

We support:

@import /* webpackIgnore: false */ url(./basic.css);

.class {
	color: red;
	background: /* webpackIgnore: true */ url("./url/img.png");
}


.class {
	background-image: image-set(
		/*webpackIgnore:  true*/
		url(./url/img1x.png) 1x,
		url(./url/img2x.png) 2x,
		url(./url/img3x.png) 3x
	);
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions