Skip to content

Commit

Permalink
BrowserSync refresh on scss change
Browse files Browse the repository at this point in the history
  • Loading branch information
zplume committed Jun 17, 2020
1 parent f619986 commit 38bb70f
Show file tree
Hide file tree
Showing 3 changed files with 5,732 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ module.exports = function(config) {
config.addPassthroughCopy('node_modules/nunjucks/browser/nunjucks-slim.js');
config.addPassthroughCopy('src/robots.txt');

// trigger build when scss changes, don't use .gitignore
config.addWatchTarget("src/_includes/assets/css");
config.setUseGitIgnore(false);

const now = new Date();

// Custom collections
Expand Down
23 changes: 23 additions & 0 deletions .eleventyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
src/scss/**/*.scss
src/_includes/assets/css/global.css.map

dist
.gitignore
.npmignore
.prettierrc
contributing.md
LICENSE.txt
netlify.toml
package.json
package-lock.json
pnpm-lock.yaml
README.md
.editorconfig
.forestry
*.log
npm-debug.*
*.scssc
*.log
*.swp
.DS_Store
.sass-cache
Loading

0 comments on commit 38bb70f

Please sign in to comment.