Skip to content

Instantly share code, notes, and snippets.

@kompuser
Created July 11, 2017 21:13
Show Gist options
  • Save kompuser/71c090b3fd2eae1de92b61beb2bc2379 to your computer and use it in GitHub Desktop.
Save kompuser/71c090b3fd2eae1de92b61beb2bc2379 to your computer and use it in GitHub Desktop.
module.exports = {
files: {
javascripts: {
joinTo: {
'js/vendor.js': /^(?!app)/,
'js/app.js': /^app/
}
},
stylesheets: {
joinTo: 'css/app.css'
},
templates: {
joinTo: {'js/app.js': /^app\/templates/}
}
},
npm: {
globals: {
$: 'jquery',
Marionette: 'backbone.marionette',
Backbone: 'backbone'
}
},
plugins: {
babel: {
presets: ['es2015'],
ignore: [
/^(node_modules)/
]
},
postcss: {
processors: [
require('autoprefixer')(['last 8 versions']),
require('csswring')()
]
},
sass: {
options: {
allowCache: true,
sourceMapEmbed: true
}
},
swPrecache: {
autorequire: ['public/index.html'],
options: {
staticFileGlobs: ['public/**/!(*map*)'],
stripPrefix: 'public/'
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment