├── .gitignore ├── .npmignore ├── .travis.yml ├── Gruntfile.js ├── README.md ├── examples ├── bundlePage.html └── bundlePage.js ├── package.json ├── src ├── backgroundValueParser.js ├── cssSupport.js ├── inline.js ├── inlineCss.js ├── inlineImage.js ├── inlineScript.js └── util.js └── test ├── SpecRunner.html ├── fixtures ├── ajax.html ├── ajaxContent.txt ├── backgroundImage.html ├── empty.css ├── empty1.html ├── empty2.html ├── externalCSS.html ├── externalJS.html ├── fontFace.html ├── green.png ├── image.html ├── importCss.html ├── integration │ ├── aScript.js │ ├── aStylesheet.css │ ├── differentPath │ │ ├── anotherFakeImage.svg │ │ └── withImage.css │ ├── fakeFont.ttf │ ├── fakeFont.woff │ ├── fakeImage.png │ └── withImport.css ├── nonUTF8Encoding.html ├── raphaelicons-license.txt ├── raphaelicons-webfont.woff ├── rednblue.png └── some.css ├── inlineIntegration ├── checksums │ ├── github_sha.txt │ └── twitter_sha.txt ├── compileTestPageData.sh ├── rasterize.js └── runInlineTests.sh ├── specs ├── BackgroundValueParserSpec.js ├── InlineCssLinksIntegrationSpec.js ├── InlineCssLinksSpec.js ├── InlineCssSpec.js ├── InlineImagesSpec.js ├── InlineMainSpec.js ├── InlineScriptSpec.js ├── InlineStylesSpec.js ├── IntegrationSpec.js └── UtilSpec.js └── testHelper.js /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | /_SpecRunner.html 4 | /node_modules 5 | /build 6 | /dist/ 7 | .idea/ 8 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | /_SpecRunner.html 4 | /node_modules 5 | /build 6 | 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/Gruntfile.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/README.md -------------------------------------------------------------------------------- /examples/bundlePage.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/examples/bundlePage.html -------------------------------------------------------------------------------- /examples/bundlePage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/examples/bundlePage.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/package.json -------------------------------------------------------------------------------- /src/backgroundValueParser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/backgroundValueParser.js -------------------------------------------------------------------------------- /src/cssSupport.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/cssSupport.js -------------------------------------------------------------------------------- /src/inline.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/inline.js -------------------------------------------------------------------------------- /src/inlineCss.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/inlineCss.js -------------------------------------------------------------------------------- /src/inlineImage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/inlineImage.js -------------------------------------------------------------------------------- /src/inlineScript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/inlineScript.js -------------------------------------------------------------------------------- /src/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/src/util.js -------------------------------------------------------------------------------- /test/SpecRunner.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/SpecRunner.html -------------------------------------------------------------------------------- /test/fixtures/ajax.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/ajax.html -------------------------------------------------------------------------------- /test/fixtures/ajaxContent.txt: -------------------------------------------------------------------------------- 1 | The content 2 | -------------------------------------------------------------------------------- /test/fixtures/backgroundImage.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/backgroundImage.html -------------------------------------------------------------------------------- /test/fixtures/empty.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/empty1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/empty1.html -------------------------------------------------------------------------------- /test/fixtures/empty2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/empty2.html -------------------------------------------------------------------------------- /test/fixtures/externalCSS.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/externalCSS.html -------------------------------------------------------------------------------- /test/fixtures/externalJS.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/externalJS.html -------------------------------------------------------------------------------- /test/fixtures/fontFace.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/fontFace.html -------------------------------------------------------------------------------- /test/fixtures/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/green.png -------------------------------------------------------------------------------- /test/fixtures/image.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/image.html -------------------------------------------------------------------------------- /test/fixtures/importCss.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/importCss.html -------------------------------------------------------------------------------- /test/fixtures/integration/aScript.js: -------------------------------------------------------------------------------- 1 | var a = "script"; 2 | -------------------------------------------------------------------------------- /test/fixtures/integration/aStylesheet.css: -------------------------------------------------------------------------------- 1 | a { 2 | content: "stylesheet"; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/integration/differentPath/anotherFakeImage.svg: -------------------------------------------------------------------------------- 1 | anotherFakeImage.svg 2 | -------------------------------------------------------------------------------- /test/fixtures/integration/differentPath/withImage.css: -------------------------------------------------------------------------------- 1 | span { 2 | background: url("anotherFakeImage.svg"); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/integration/fakeFont.ttf: -------------------------------------------------------------------------------- 1 | fakeFont.ttf 2 | -------------------------------------------------------------------------------- /test/fixtures/integration/fakeFont.woff: -------------------------------------------------------------------------------- 1 | fakeFont.woff 2 | -------------------------------------------------------------------------------- /test/fixtures/integration/fakeImage.png: -------------------------------------------------------------------------------- 1 | fakeImage.png 2 | -------------------------------------------------------------------------------- /test/fixtures/integration/withImport.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/integration/withImport.css -------------------------------------------------------------------------------- /test/fixtures/nonUTF8Encoding.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/nonUTF8Encoding.html -------------------------------------------------------------------------------- /test/fixtures/raphaelicons-license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/raphaelicons-license.txt -------------------------------------------------------------------------------- /test/fixtures/raphaelicons-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/raphaelicons-webfont.woff -------------------------------------------------------------------------------- /test/fixtures/rednblue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/fixtures/rednblue.png -------------------------------------------------------------------------------- /test/fixtures/some.css: -------------------------------------------------------------------------------- 1 | p { 2 | font-size: 14px; 3 | } 4 | -------------------------------------------------------------------------------- /test/inlineIntegration/checksums/github_sha.txt: -------------------------------------------------------------------------------- 1 | 7aed28ab7332456ebeb3fa65fb9515b2001f10b9 2 | -------------------------------------------------------------------------------- /test/inlineIntegration/checksums/twitter_sha.txt: -------------------------------------------------------------------------------- 1 | 18145f2297177c5ca84f7b0f1e004977392ef61f 2 | -------------------------------------------------------------------------------- /test/inlineIntegration/compileTestPageData.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/inlineIntegration/compileTestPageData.sh -------------------------------------------------------------------------------- /test/inlineIntegration/rasterize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/inlineIntegration/rasterize.js -------------------------------------------------------------------------------- /test/inlineIntegration/runInlineTests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/inlineIntegration/runInlineTests.sh -------------------------------------------------------------------------------- /test/specs/BackgroundValueParserSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/BackgroundValueParserSpec.js -------------------------------------------------------------------------------- /test/specs/InlineCssLinksIntegrationSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineCssLinksIntegrationSpec.js -------------------------------------------------------------------------------- /test/specs/InlineCssLinksSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineCssLinksSpec.js -------------------------------------------------------------------------------- /test/specs/InlineCssSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineCssSpec.js -------------------------------------------------------------------------------- /test/specs/InlineImagesSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineImagesSpec.js -------------------------------------------------------------------------------- /test/specs/InlineMainSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineMainSpec.js -------------------------------------------------------------------------------- /test/specs/InlineScriptSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineScriptSpec.js -------------------------------------------------------------------------------- /test/specs/InlineStylesSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/InlineStylesSpec.js -------------------------------------------------------------------------------- /test/specs/IntegrationSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/IntegrationSpec.js -------------------------------------------------------------------------------- /test/specs/UtilSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/specs/UtilSpec.js -------------------------------------------------------------------------------- /test/testHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cburgmer/inlineresources/HEAD/test/testHelper.js --------------------------------------------------------------------------------