Replace broccoli-sass with broccoli-compass in broccoli-sample-app

前端 未结 1 1034
天涯浪人
天涯浪人 2021-01-07 00:27

I\'m attempting to replace broccoli-sass with broccoli-compass, in the Broccoli Ember Sample.

My app structure looks like:

app
public
styles
  app.sc         


        
相关标签:
1条回答
  • 2021-01-07 01:13

    I changed the brocfile styles preprocess to:

    var styles = 'styles'
    styles = pickFiles(styles, {
      srcDir: '/',
      destDir: appNamespace + '/styles'
    })
    styles = preprocess(styles)
    

    and the compileSass call to:

    var appCss = compileSass(appAndDependencies, appNamespace + '/styles/app.scss', {
        outputStyle: 'expanded',
        sassDir: appNamespace + '/styles',
        imagesDir: 'public/images/',
        cssDir: '/assets'
    })
    

    Similar to the answer here - Compiling Compass in an Ember-CLI project

    0 讨论(0)
提交回复
热议问题