libsass

Gulp Sass not compiling partials

自古美人都是妖i 提交于 2019-12-01 17:59:56
So I am using Gulp Sass with gulp-changed (i've also tried gulp-newer with the updated syntax changes) and watching all the scss files in my folders. When I change a base scss file it will compile without any problems. However if I change a partial it won't compile the sass file that has a dependency on that partial. Gulp var SRC = './stylesheets/**/*.scss'; var DEST = './stylesheets'; gulp.task('sass', function() { return gulp.src(SRC) .pipe(changed(DEST, { extension: '.css' })) .pipe(plumber({ errorHandler: handleErrors })) .pipe(sourcemaps.init()) .pipe(sass({ includePaths: [ 'C:/var/www

Using libsass with compass

馋奶兔 提交于 2019-11-30 08:30:28
Exactly as the title says. Compilation times over 50 seconds are unacceptable. So, is there a way, let's say: a single (partial) file with compass magic (like sprite mixins, etc.), and the rest of files with pure sass? I'm considering moving to less (reference importing), and substituting all compass tricks with additional grunt tasks, but I'm more comfortable around sass than less. I saw those tickets , but I hoped there would be a way to compile a single file with compass, and the rest to be merged with libsass (I sometimes use sass 3.3 syntax, but if I can gain better compile times I can

Using libsass with compass

夙愿已清 提交于 2019-11-29 11:31:19
问题 Exactly as the title says. Compilation times over 50 seconds are unacceptable. So, is there a way, let's say: a single (partial) file with compass magic (like sprite mixins, etc.), and the rest of files with pure sass? I'm considering moving to less (reference importing), and substituting all compass tricks with additional grunt tasks, but I'm more comfortable around sass than less. I saw those tickets, but I hoped there would be a way to compile a single file with compass, and the rest to be

How to compile or convert sass / scss to css with node-sass (no Ruby)?

瘦欲@ 提交于 2019-11-28 02:44:46
I was struggling with setting up libsass as it wasn't as straight-forward as the Ruby based transpiler. Could someone explain how to: install libsass? use it from command line? use it with task runners like gulp and grunt? I have little experience with package managers and even less so with task runners. Thoran I picked node-sass implementer for libsass because it is based on node.js. Installing node-sass (Prerequisite) If you don't have npm, install Node.js first. $ npm install -g node-sass installs node-sass globally -g . This will hopefully install all you need, if not read libsass at the

libsass bindings not found when using node-sass in nodejs

独自空忆成欢 提交于 2019-11-27 10:12:27
I want to use the node-sass module in my node.js v0.12 application to benefit from the performance of libsass . I executed npm i node-sass to install the module, no errors so far. Now the mess starts: If I just open the REPL in a terminal to try out node-sass then everything works fine but if I include it in my project files and run node myfile.js then I get the following error message: Error: `libsass` bindings not found. Try reinstalling `node-sass`? The module's description at npmjs.com states that there might be a problem with resolving #!/usr/bin/env node under Ubuntu and how to fix this

node-sass 安装失败的各种坑

一世执手 提交于 2019-11-26 15:44:21
# 1. 将 node_modules 文件夹删除 # 2. 安装 node-sass npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ # 上一句失败 将 已下载东西 重新编译 npm rebuild node-sass # 3. 安装其余的依赖 开始的时候引入别人的一个项目 npm install npm run dev 启动项目 报错 > sell@1.0.0 dev E:\web_hwf\Vue\02app > node build/dev-server.js Listening at http://localhost:8888 webpack: wait until bundle finished: /index.html webpack built 5301489d16ee90d86896 in 3165ms Hash: 5301489d16ee90d86896 Version: webpack 1.15.0 Time: 3165ms Asset Size Chunks Chunk Names app.js 1.96 MB 0 app ERROR in Cannot find module 'node-sass' @ ./src/common/scss/index

libsass bindings not found when using node-sass in nodejs

♀尐吖头ヾ 提交于 2019-11-26 15:08:09
问题 I want to use the node-sass module in my node.js v0.12 application to benefit from the performance of libsass . I executed npm i node-sass to install the module, no errors so far. Now the mess starts: If I just open the REPL in a terminal to try out node-sass then everything works fine but if I include it in my project files and run node myfile.js then I get the following error message: Error: `libsass` bindings not found. Try reinstalling `node-sass`? The module's description at npmjs.com

How to compile or convert sass / scss to css with node-sass (no Ruby)?

偶尔善良 提交于 2019-11-26 15:02:14
问题 I was struggling with setting up libsass as it wasn't as straight-forward as the Ruby based transpiler. Could someone explain how to: install libsass? use it from command line? use it with task runners like gulp and grunt? I have little experience with package managers and even less so with task runners. 回答1: I picked node-sass implementer for libsass because it is based on node.js. Installing node-sass (Prerequisite) If you don't have npm, install Node.js first. $ npm install -g node-sass