Add some comments to the webpack config

This commit is contained in:
Alberto Fernández Capel
2018-05-16 13:59:33 +01:00
parent de645afff9
commit 1fd923bf27
+3 -1
View File
@@ -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'),
}