Skip to content

Commit

Permalink
feat: issue 1256
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-Bernardito committed Feb 19, 2021
1 parent 218ed12 commit 014473c
Show file tree
Hide file tree
Showing 7 changed files with 2,742 additions and 0 deletions.
Binary file added test/fixtures/fonts/Roboto-Regular.eot
Binary file not shown.
2,606 changes: 2,606 additions & 0 deletions test/fixtures/fonts/Roboto-Regular.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added test/fixtures/fonts/Roboto-Regular.woff
Binary file not shown.
Binary file added test/fixtures/fonts/Roboto-Regular.woff2
Binary file not shown.
131 changes: 131 additions & 0 deletions test/fixtures/webpackIgnore.css
@@ -0,0 +1,131 @@
/*webpackIgnore: true*/
@import url(./basic.css);

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

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

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

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

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

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

/** webpackIgnore: true **/
@font-face {
font-family: "Roboto";
src: url("./fonts/Roboto-Regular.eot");
src:
url("./fonts/Roboto-Regular.eot#iefix") format("embedded-opentype"),
url("./fonts/Roboto-Regular.woff2") format("woff"),
url("./fonts/Roboto-Regular.woff") format("woff"),
url("./fonts/Roboto-Regular.ttf") format("truetype"),
url("./fonts/Roboto-Regular.svg#Roboto-Regular") format("svg");
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src: /** webpackIgnore: true **/ url("./fonts/Roboto-Regular.eot");
src:
/** webpackIgnore: true **/
url("./fonts/Roboto-Regular.eot#iefix") format("embedded-opentype"),
url("./fonts/Roboto-Regular.woff2") format("woff"),
url("./fonts/Roboto-Regular.woff") format("woff"),
url("./fonts/Roboto-Regular.ttf") format("truetype"),
url("./fonts/Roboto-Regular.svg#Roboto-Regular") format("svg");
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src: /** webpackIgnore: true **/ url("./fonts/Roboto-Regular.eot");
/** webpackIgnore: true **/
src:
url("./fonts/Roboto-Regular.eot#iefix") format("embedded-opentype"),
url("./fonts/Roboto-Regular.woff2") format("woff"),
url("./fonts/Roboto-Regular.woff") format("woff"),
url("./fonts/Roboto-Regular.ttf") format("truetype"),
url("./fonts/Roboto-Regular.svg#Roboto-Regular") format("svg");
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: "Roboto";
src: url("./fonts/Roboto-Regular.eot");
src:
url("./fonts/Roboto-Regular.eot#iefix") format("embedded-opentype"),
/** webpackIgnore: true **/
url("./fonts/Roboto-Regular.woff2") format("woff"),
url("./fonts/Roboto-Regular.woff") format("woff"),
/** webpackIgnore: true **/
url("./fonts/Roboto-Regular.ttf") format("truetype"),
url("./fonts/Roboto-Regular.svg#Roboto-Regular") format("svg");
font-weight: 400;
font-style: normal;
}

/*webpackIgnore: true*/
.class {
background-image: image-set(
url(./url/img.png) 2x,
url(./url/img.png) 3x,
url(./url/img.png) 4x
);
}

.class {
/*webpackIgnore: true*/
background-image: image-set(
url(./url/img.png) 2x,
url(./url/img.png) 3x,
url(./url/img.png) 4x
);
}

.class {
background-image: /*webpackIgnore: true*/ image-set(
url(./url/img.png) 2x,
url(./url/img.png) 3x,
url(./url/img.png) 4x
);
}

.class {
background-image: image-set(
/*webpackIgnore: true*/
url(./url/img.png) 2x,
url(./url/img.png) 3x,
/*webpackIgnore: true*/
url(./url/img.png) 5x
);
}
5 changes: 5 additions & 0 deletions test/fixtures/webpackIgnore.js
@@ -0,0 +1,5 @@
import css from './webpackIgnore.css';

__export__ = css;

export default css;

0 comments on commit 014473c

Please sign in to comment.