diff --git a/test/fixtures/fonts/Roboto-Regular.eot b/test/fixtures/fonts/Roboto-Regular.eot new file mode 100644 index 00000000..5f4be13f Binary files /dev/null and b/test/fixtures/fonts/Roboto-Regular.eot differ diff --git a/test/fixtures/fonts/Roboto-Regular.svg b/test/fixtures/fonts/Roboto-Regular.svg new file mode 100644 index 00000000..311d46d8 --- /dev/null +++ b/test/fixtures/fonts/Roboto-Regular.svg @@ -0,0 +1,2606 @@ + + + + +Created by FontForge 20170731 at Wed Mar 29 15:03:00 2017 + By Aleksey,,, +Copyright 2011 Google Inc. All Rights Reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/fixtures/fonts/Roboto-Regular.ttf b/test/fixtures/fonts/Roboto-Regular.ttf new file mode 100644 index 00000000..2880e77f Binary files /dev/null and b/test/fixtures/fonts/Roboto-Regular.ttf differ diff --git a/test/fixtures/fonts/Roboto-Regular.woff b/test/fixtures/fonts/Roboto-Regular.woff new file mode 100644 index 00000000..33c01a14 Binary files /dev/null and b/test/fixtures/fonts/Roboto-Regular.woff differ diff --git a/test/fixtures/fonts/Roboto-Regular.woff2 b/test/fixtures/fonts/Roboto-Regular.woff2 new file mode 100644 index 00000000..c5773af3 Binary files /dev/null and b/test/fixtures/fonts/Roboto-Regular.woff2 differ diff --git a/test/fixtures/webpackIgnore.css b/test/fixtures/webpackIgnore.css new file mode 100644 index 00000000..70a128f6 --- /dev/null +++ b/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 + ); +} diff --git a/test/fixtures/webpackIgnore.js b/test/fixtures/webpackIgnore.js new file mode 100644 index 00000000..df14bbac --- /dev/null +++ b/test/fixtures/webpackIgnore.js @@ -0,0 +1,5 @@ +import css from './webpackIgnore.css'; + +__export__ = css; + +export default css;