mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
perf(docs): ignore node_modules in markdown preprocessor
This commit is contained in:
parent
4b2722e884
commit
7257e1abb9
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,7 @@ module.exports = {
|
||||||
extensions: [".svelte", ".svx"],
|
extensions: [".svelte", ".svx"],
|
||||||
preprocess: [
|
preprocess: [
|
||||||
require("svelte-preprocess")({
|
require("svelte-preprocess")({
|
||||||
|
typescript: false,
|
||||||
replace: [
|
replace: [
|
||||||
["process.env.VERSION", JSON.stringify(pkg.version)],
|
["process.env.VERSION", JSON.stringify(pkg.version)],
|
||||||
["process.env.NODE_ENV", JSON.stringify(NODE_ENV)],
|
["process.env.NODE_ENV", JSON.stringify(NODE_ENV)],
|
||||||
|
@ -148,6 +149,7 @@ module.exports = {
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
markup({ content, filename }) {
|
markup({ content, filename }) {
|
||||||
|
if (/node_modules/.test(filename)) return null;
|
||||||
if (filename.endsWith(".svx") && filename.match(/pages\/(recipes)/)) {
|
if (filename.endsWith(".svx") && filename.match(/pages\/(recipes)/)) {
|
||||||
const toc = [];
|
const toc = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue