eleventy-plugin-sass icon indicating copy to clipboard operation
eleventy-plugin-sass copied to clipboard

fails if output directory doesn't exist

Open mvolkmann opened this issue 4 years ago • 0 comments

Suppose my input files are in a directory named input, my .scss files are in input/assets and the directory _site does not yet exist. If I configure this plugin as follows and try to build the site, it fails with an error saying that _site/assets doesn't exist.

  eleventyConfig.addPlugin(sassPlugin, {
    watch: 'input/**/*.{scss,sass}'
  });

If I manually create the _site/assets directory and then build the site, it works. I think this plugin needs to create any output directories for which it plans to write .css files.

mvolkmann avatar Apr 14 '20 13:04 mvolkmann