Compiling Compass in an Ember-CLI project

前端 未结 2 1170
时光说笑
时光说笑 2021-01-21 10:55

I\'m using ember-cli v0.0.23, and am trying to get the broccoli-compass package working with my project, and I\'ve run into some problems.

First, in my Brocfile

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-21 11:38

    Try this (added prefix and cssDir):

    var compileCompass = require('broccoli-compass');
    var styles = compileCompass(appAndDependencies, prefix + '/styles/app.scss', {
        outputStyle: 'expanded',
        sassDir: prefix + '/styles',
        imagesDir: 'public/images/',
        cssDir: '/assets'
    });
    

    Steffen

提交回复
热议问题