git - Use Compass mixins in Brunch -
i`m trying use compass-mixins plugin git , compile brunch.
problem cant use mixins inside main.scss. have import the compass.scss example makes compile time more 2000ms, compared 100ms. i`m sure there better way, doesnt compile scss compass or bourbon every time change main.scss. here structure , config:
exports.config = # see http://brunch.io/#documentation docs. modules: definition: false wrapper: false sourcemaps: false optimize: false files: javascripts: jointo: 'js/app.js' : /^app/ 'js/vendor.js' : /^(vendor|bower_components)/ order: before: [ 'bower_components/jquery/jquery.js' ] stylesheets: jointo: 'css/app.css' : /^(app|bower_components)/ order: before: [ 'app/styles/_settings.scss' ] plugins: sass: debug: false options: includepaths: [ 'bower_components/foundation/scss', 'bower_components/compass-mixins/lib/compass' ]
my app structure app -styles -styles/_settings.scss (for foundation) -styles/main.scss in if include compass in main works slow. if dont, says mixins try use undefined.
edit 1
today tested bourbon , works lightning fast. there seems problem compass-mixin self.
update sass-brunch v1.8.8 , in brunch config set:
plugins: sass: mode: 'native'
Comments
Post a Comment