You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/preprocess/samples/multiple-preprocessors/_config.js

15 lines
500 B

export default {
preprocess: [
{
markup: ({ content }) => ({ code: content.replace(/one/g, 'two') }),
script: ({ content }) => ({ code: content.replace(/two/g, 'three') }),
style: ({ content }) => ({ code: content.replace(/three/g, 'style') })
},
{
markup: ({ content }) => ({ code: content.replace(/two/g, 'three') }),
script: ({ content }) => ({ code: content.replace(/three/g, 'script') }),
style: ({ content }) => ({ code: content.replace(/three/g, 'style') })
}
]
};