LoginSignup
0
1

More than 1 year has passed since last update.

node-sass から Dart Sass への覚書

Posted at

公式

参考

以下覚書

$ npm i sass --save-dev

※ zsh: command not found:sass をくらったらパスが通ってないので下記あたりで通るハズ

$ export PATH=$PATH:./node_modules/.bin
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile

使ってみる

# 単独のファイルのみ
$ sass style.scss:style.css

# 複数ファイル
$ sass _scss/style.scss:css/style.css _scss/editor.scss:css/editor.css

# ディレクトリごと
$ sass _scss:css

オプション

最小化

$ sass --style=compressed _scss:css

@charsetを自動出力しない

$ sass _scss:css --no-charset

ソースマップを出力しない

$ sass --no-source-map _scss:css

エラー出力しない

$ sass --no-error-css _scss:css

watch

$ sass --watch _scss:css
0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1