Skip to content

Instantly share code, notes, and snippets.

@artyomtrityak
Created January 26, 2017 22:07
Show Gist options
  • Save artyomtrityak/385765aa8b5bdcb3e29ff3f337e11f5f to your computer and use it in GitHub Desktop.
Save artyomtrityak/385765aa8b5bdcb3e29ff3f337e11f5f to your computer and use it in GitHub Desktop.
module: {
rules: [
//Shim
{
test: /handlebars/,
use: [
'imports-loader?this=>window',
'exports-loader?Handlebars'
]
},
{
test: /jquery\-1\.9\.1\.js/,
use: [
'imports-loader?this=>window',
'exports-loader?jQuery'
]
},
{
test: /backbone/,
use: [
'expose-loader?Backbone',
'imports-loader?this=>window,jquery,underscore'
]
},
{
test: /underscore/,
loader: 'expose-loader?_' },
{
test: /chaplin/,
loader: 'imports-loader?this=>window,backbone'
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment