|
|
@@ -1,6 +1,5 @@
|
|
|
const fs = require('fs')
|
|
|
const path = require('path')
|
|
|
-const webpack = require('webpack')
|
|
|
|
|
|
const MODULES_PATH = path.join(__dirname, '/modules')
|
|
|
|
|
|
@@ -63,6 +62,8 @@ module.exports = {
|
|
|
}]
|
|
|
},
|
|
|
{
|
|
|
+ // These options are necesary for handlebars to have access to helper
|
|
|
+ // methods
|
|
|
test: /\.handlebars$/,
|
|
|
loader: "handlebars-loader",
|
|
|
options: {
|
|
|
@@ -74,6 +75,7 @@ module.exports = {
|
|
|
},
|
|
|
resolve: {
|
|
|
alias: {
|
|
|
+ // makes handlerbars globally accessible to backbone
|
|
|
handlebars: 'handlebars/dist/handlebars.min.js',
|
|
|
jquery: path.join(__dirname, 'node_modules/jquery/dist/jquery'),
|
|
|
}
|