diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-08 19:24:29 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2022-01-08 19:24:29 +0530 |
commit | d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7 (patch) | |
tree | 6a2197430925fee1f3b4f1d2966ecdd6f9ef244e /.eleventy.js | |
parent | fixed incorrect window usage in service worker (diff) | |
download | sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.tar sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.tar.gz sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.tar.bz2 sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.tar.lz sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.tar.xz sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.tar.zst sudomsg-d78cd5bf9a9b0f5dc0e9f902a72184a83fc7d5a7.zip |
fixed the asset folder permalink issues
Diffstat (limited to '.eleventy.js')
-rw-r--r-- | .eleventy.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.eleventy.js b/.eleventy.js index eadd855..0c450ad 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -22,6 +22,9 @@ module.exports = eleventyConfig => { eleventyConfig.addExtension("css", { outputFileExtension: "css", + compileOptions: { + permalink: "raw" + }, compile: async(content, filename) => async data => { const css = await postcss() @@ -37,8 +40,11 @@ module.exports = eleventyConfig => { eleventyConfig.addExtension("mjs", { outputFileExtension: "js", - compile: (content, filename) => { - return async data => { + compileOptions: { + permalink: "raw" + }, + compile: (content, filename) => + async data => { const js = await babel.transformAsync(content, { presets: [ ["@babel/preset-env", { @@ -53,7 +59,6 @@ module.exports = eleventyConfig => { }) return js.code } - } }) |