Update eleventy config so watching drafts works again
This commit is contained in:
parent
38c6716433
commit
80b1027068
3 changed files with 65 additions and 66 deletions
11
.eleventy.js
11
.eleventy.js
|
|
@ -13,14 +13,17 @@ const { DateTime } = require('luxon')
|
|||
const header = require('./src/_includes/filters/header')
|
||||
|
||||
module.exports = function (config) {
|
||||
config.addWatchTarget('./src/posts/drafts/*.md')
|
||||
config.setServerOptions({
|
||||
watch: [
|
||||
'./_site/assets/*.css'
|
||||
]
|
||||
})
|
||||
|
||||
config.addPlugin(pluginRss)
|
||||
config.addPlugin(pluginToc)
|
||||
config.addPlugin(pluginSyntaxHighlight)
|
||||
|
||||
config.setBrowserSyncConfig({
|
||||
files: './_site/assets/*.css'
|
||||
})
|
||||
|
||||
config.addPassthroughCopy('src/assets/key.txt')
|
||||
config.addPassthroughCopy('src/assets/prism-base16-ateliersulphurpool.light.css')
|
||||
config.addPassthroughCopy('src/posts/**/*.{jpeg,jpg,png,webp}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue