fix: disable caching for custom CSS/JS extensions in Eleventy 3.1.2
This commit is contained in:
parent
4bdaa7139c
commit
7d4641e0c3
2 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ export const cssConfig = eleventyConfig => {
|
|||
|
||||
eleventyConfig.addExtension('css', {
|
||||
outputFileExtension: 'css',
|
||||
cacheable: false,
|
||||
compile: async (inputContent, inputPath) => {
|
||||
const paths = [];
|
||||
if (inputPath.endsWith('/src/assets/css/global/global.css')) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ export const jsConfig = eleventyConfig => {
|
|||
|
||||
eleventyConfig.addExtension('js', {
|
||||
outputFileExtension: 'js',
|
||||
cacheable: false,
|
||||
compile: async (content, inputPath) => {
|
||||
// Skip processing if not in the designated scripts directories
|
||||
if (!inputPath.startsWith('./src/assets/scripts/')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue