mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add some comments to the webpack config
This commit is contained in:
parent
de645afff9
commit
1fd923bf27
1 changed files with 3 additions and 1 deletions
|
@ -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'),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue