mirror of
https://github.com/danog/inline-critical.git
synced 2024-11-26 12:04:38 +01:00
commit
cb7d83d8fd
1958
package-lock.json
generated
1958
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -30,27 +30,26 @@
|
||||
"url": "https://github.com/bezoerb/inline-critical/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"chalk": "^2.4.2",
|
||||
"chalk": "^3.0.0",
|
||||
"clean-css": "^4.2.1",
|
||||
"css": "^2.2.4",
|
||||
"detect-indent": "^6.0.0",
|
||||
"dom-serializer": "^0.1.1",
|
||||
"fg-loadcss": "^2.1.0",
|
||||
"get-stdin": "^7.0.0",
|
||||
"indent-string": "^4.0.0",
|
||||
"jsdom": "^15.2.0",
|
||||
"jsdom": "^15.2.1",
|
||||
"lodash.defaults": "^4.2.0",
|
||||
"lodash.escaperegexp": "^4.1.2",
|
||||
"lodash.isregexp": "^4.0.1",
|
||||
"lodash.isstring": "^4.0.1",
|
||||
"meow": "^5.0.0",
|
||||
"normalize-newline": "^3.0.0",
|
||||
"postcss": "^7.0.18",
|
||||
"postcss-discard": "^0.3.2",
|
||||
"prettier": "^1.18.2",
|
||||
"postcss": "^7.0.21",
|
||||
"postcss-discard": "^0.3.3",
|
||||
"prettier": "^1.19.1",
|
||||
"reaver": "^2.0.0",
|
||||
"slash": "^3.0.0",
|
||||
"uglify-js": "^3.6.4"
|
||||
"uglify-js": "^3.6.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"execa": "^1.0.0",
|
||||
|
@ -54,10 +54,7 @@ describe('acceptance', () => {
|
||||
|
||||
test('Work well with the critical CSS file piped to inline-critical and html file as input', async () => {
|
||||
const expected = await read('expected/index-inlined-async-final.html');
|
||||
const {stdout, code} = await pipe(
|
||||
'fixtures/critical.css',
|
||||
['test/fixtures/index.html', '--no-minify']
|
||||
);
|
||||
const {stdout, code} = await pipe('fixtures/critical.css', ['test/fixtures/index.html', '--no-minify']);
|
||||
|
||||
expect(code).toBe(0);
|
||||
expect(strip(stdout)).toBe(strip(expected));
|
||||
@ -65,10 +62,7 @@ describe('acceptance', () => {
|
||||
|
||||
test('Work well with the html file piped to inline-critical and critical CSS file as input', async () => {
|
||||
const expected = await read('expected/index-inlined-async-final.html');
|
||||
const {stdout, code} = await pipe(
|
||||
'fixtures/index.html',
|
||||
['test/fixtures/critical.css', '--no-minify']
|
||||
);
|
||||
const {stdout, code} = await pipe('fixtures/index.html', ['test/fixtures/critical.css', '--no-minify']);
|
||||
|
||||
expect(code).toBe(0);
|
||||
expect(strip(stdout)).toBe(strip(expected));
|
||||
|
Loading…
Reference in New Issue
Block a user