LoginSignup
13
11

More than 5 years have passed since last update.

Compassのsourcemap出力

Last updated at Posted at 2014-04-29

sassのインストール

  • Sassはsourcemap出力は正式対応されているので、下記コマンドでインストール。
gem install sass

Compassのインストール

  • Compassは現時点ではsourcemapの出力に正式対応していない(2014年4月29日時点)のでalpha版をインストールする
gem install compass --pre

config.rbに以下を追加することでsourcemapが出力される

config.rb
sourcemap = true

※ 以前はcompass watchではsourcemapが出力されなかったが、現在は出力される

Gruntのインストール(オプション)

  • compass -watchでsourcemapが出力されなかったが、Gruntでは対応している?!
  • gruntではsourcemapオプションで指定することができる npm install grunt-cli -g npm install grunt-contrib-compass
Gruntfile.js
grunt.initConfig({
    compass: {
      watch: true,
      sourcemap: true
    }
});
13
11
0

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
13
11