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/js.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/js.11ty.js')
-rw-r--r-- | src/js.11ty.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/js.11ty.js b/src/js.11ty.js deleted file mode 100644 index b4b04c7..0000000 --- a/src/js.11ty.js +++ /dev/null @@ -1,35 +0,0 @@ -const fs = require('fs') -const path = require('path') -const postcss = require('postcss') - -module.exports = class { - async data() { - return { - inputs: [ - ], - - pagination: { - data: 'inputs', - alias: 'inputfiles', - size: 1 - }, - - permalink: ({ inputfiles }) => `/${inputfiles}.css`, - - eleventyExcludeFromCollections: true - } - }; - - async render({ inputfiles}) { - const inputfile = path.join(__dirname, inputfiles); - return await postcss([ - require('postcss-import'), - require('autoprefixer'), - require('cssnano') - ]) - .process(await fs.readFileSync(inputfile), { - from: inputfile - }) - .then(result => result.css) - }; -} |