From 1fd923bf27b6995f6dd9e0db3d820b0a54444bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Fern=C3=A1ndez=20Capel?= Date: Tue, 15 May 2018 09:44:57 +0100 Subject: [PATCH] Add some comments to the webpack config --- services/web/webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 7050a7eb0e..c914bc1f21 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -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'), }