Skip to content

Instantly share code, notes, and snippets.

@brianjhanson
Created July 9, 2017 17:21
Show Gist options
  • Save brianjhanson/a878b489b7a27b51abd96fed63851558 to your computer and use it in GitHub Desktop.
Save brianjhanson/a878b489b7a27b51abd96fed63851558 to your computer and use it in GitHub Desktop.
Example of adding CSS globbing to Vigor's blendid
var nodeSassGlobbing = require('node-sass-globbing');
module.exports = {
images : true,
fonts : true,
svgSprite : true,
stylesheets : {
sass: {
includePaths: ["./node_modules"], // from default, but we still want it
// Not sure why we have to split this into a function, but we seem to need to
importer(url, prev, done) {
nodeSassGlobbing(url, prev, done)
},
}
},
javascripts: {
entry: {
// files paths are relative to
// javascripts.dest in path-config.json
app: ["./main.js"]
},
// This tells webpack middleware where to
// serve js files from in development:
publicPath: "/assets/scripts"
},
browserSync: {
// Update this to match your development URL
proxy: 'side-c.dev',
files: ['craft/templates/**/*']
},
production: {
rev: true
},
ghPages : false,
html : false,
static : false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment