Skip to content

Instantly share code, notes, and snippets.

@mistadikay
Created March 10, 2016 08:11
Show Gist options
  • Save mistadikay/eafe13e127c63e7dcf38 to your computer and use it in GitHub Desktop.
Save mistadikay/eafe13e127c63e7dcf38 to your computer and use it in GitHub Desktop.
// ...
preLoaders: [
{
test: /\.js$/,
loader: 'rebem-layers',
query: {
layers: [
// shared layers
require('core-components'),
require('theme-reset'),
require('custom-components'),
require('product-theme'),
// app components
{
path: path.resolve('src/components/'),
files: {
main: 'index.js',
styles: 'styles.less'
}
}
],
// list of places where you will require components from layers
consumers: [
path.resolve('src/')
]
}
}
],
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment