Skip to content

Commit a228120

Browse files
committed
run tests combined with cssnano + source maps
1 parent 7b5e8a5 commit a228120

File tree

7 files changed

+53124
-149
lines changed

7 files changed

+53124
-149
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@
3636
"babel-polyfill": "^6.23.0",
3737
"babel-preset-env": "^1.4.0",
3838
"cross-env": "^4.0.0",
39+
"cssnano": "^3.10.0",
3940
"del-cli": "^0.2.1",
4041
"eslint": "^3.19.0",
4142
"eslint-config-webpack": "^1.2.1",
4243
"eslint-plugin-import": "^2.2.0",
4344
"jest": "^19.0.2",
4445
"lint-staged": "^3.4.1",
4546
"nsp": "^2.6.3",
47+
"postcss-loader": "^1.3.3",
4648
"pre-commit": "^1.2.2",
4749
"standard-version": "^4.0.0",
4850
"webpack": "^2.4.1",

src/parse-at-import.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default {
6161
{
6262
'"([^\\\\"]|\\\\.)*"': atImportUrlMatch,
6363
'\'([^\\\\\']|\\\\.)*\'': atImportUrlMatch,
64+
'[^\\)]+': atImportUrlMatch,
6465
},
6566
'nothingElse',
6667
],

test/__snapshots__/parse.test.js.snap

+12-6
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,28 @@ Object {
2525
"url": "abc",
2626
},
2727
Object {
28-
"end": 172,
28+
"end": 171,
2929
"mediaQuery": Array [
3030
"screen",
3131
"print",
3232
],
3333
"start": 64,
3434
"url": "abc",
3535
},
36+
Object {
37+
"end": 206,
38+
"mediaQuery": Array [],
39+
"start": 172,
40+
"url": "bootstrap-theme.css",
41+
},
3642
],
3743
"exports": Array [],
3844
"identifiers": Array [
3945
Array [
4046
"media",
4147
Object {
4248
"locations": Array [
43-
174,
49+
208,
4450
],
4551
"name": "media",
4652
},
@@ -49,7 +55,7 @@ Object {
4955
"screen",
5056
Object {
5157
"locations": Array [
52-
180,
58+
214,
5359
],
5460
"name": "screen",
5561
},
@@ -58,7 +64,7 @@ Object {
5864
"body",
5965
Object {
6066
"locations": Array [
61-
191,
67+
225,
6268
],
6369
"name": "body",
6470
},
@@ -67,7 +73,7 @@ Object {
6773
"background",
6874
Object {
6975
"locations": Array [
70-
202,
76+
236,
7177
],
7278
"name": "background",
7379
},
@@ -76,7 +82,7 @@ Object {
7682
"red",
7783
Object {
7884
"locations": Array [
79-
214,
85+
248,
8086
],
8187
"name": "red",
8288
},

0 commit comments

Comments
 (0)