Просмотр исходного кода

Add some comments to the webpack config

Alberto Fernández Capel 8 лет назад
Родитель
Сommit
1fd923bf27
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      services/web/webpack.config.js

+ 3 - 1
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'),
 		}