mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Add some comments to the webpack config
This commit is contained in:
@@ -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'),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user