diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-08 17:27:42 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-08 17:27:42 +0530 |
commit | 5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a (patch) | |
tree | bbca1d1fa46fb810d9974484572de5a9bfac54b8 /src/css.11ty.js | |
parent | make it ready to deploy (diff) | |
download | sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.gz sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.bz2 sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.lz sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.xz sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.tar.zst sudomsg-5aeaf2f352e7da0a0d55a7ad2cd7dbd3869b875a.zip |
add service worker
Diffstat (limited to 'src/css.11ty.js')
-rw-r--r-- | src/css.11ty.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/css.11ty.js b/src/css.11ty.js deleted file mode 100644 index 3a5b9df..0000000 --- a/src/css.11ty.js +++ /dev/null @@ -1,36 +0,0 @@ -const fs = require('fs') -const path = require('path') -const postcss = require('postcss') - -module.exports = class { - async data() { - return { - inputs: [ - 'index.css', - 'prism.css' - ], - - pagination: { - data: 'inputs', - alias: 'inputfiles', - size: 1 - }, - - permalink: ({ inputfiles }) => `/${inputfiles}`, - - eleventyExcludeFromCollections: true - } - }; - - async render({ inputfiles}) { - const inputfile = path.join(__dirname, inputfiles); - return await postcss([ - require('postcss-import'), - require('autoprefixer'), - ]) - .process(await fs.readFileSync(inputfile), { - from: inputfile - }) - .then(result => result.css) - }; -} |