node-sass
node-sass copied to clipboard
Recompile parent scss file when imported scss file is edited.
- NPM version (
npm -v): 6.14.4 - Node version (
node -v): 12.16.3 - Node Process (
node -p process.versions): { node: '12.16.3', v8: '7.8.279.23-node.35', uv: '1.34.2', zlib: '1.2.11', brotli: '1.0.7', ares: '1.16.0', modules: '72', nghttp2: '1.40.0', napi: '5', llhttp: '2.0.4', http_parser: '2.9.3', openssl: '1.1.1g', cldr: '36.0', icu: '65.1', tz: '2019c', unicode: '12.1' } - Node Platform (
node -p process.platform): win32 - Node architecture (
node -p process.arch): x64 - node-sass version (
node -p "require('node-sass').info"): node-sass 4.14.1 (Wrapper) [JavaScript] libsass 3.5.5 (Sass Compiler) [C/C++] - npm node-sass versions (
npm ls node-sass):-- [email protected]-- [email protected]
So i am using gulp as task runner to compile all my scss files into another directory. I have a watch task which is watching the file which is changed and passes it as src for gulp.src. This file contains a prefix underscore. Obviously, i dont want this file to be compiled, but i want to have the parent file, which imports my currently changed file, to be recompiled. How does this work? Is there any chance to accomplish this? I tried to set options like includePaths or file or data but nothing helped yet...
Greetings, Kevin.