mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-08 11:32:39 +00:00
Configure handlerbars loader in webpack
Needed for the metrics app.
This commit is contained in:
parent
fe75936ff7
commit
cc530666ab
1 changed files with 16 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const webpack = require('webpack')
|
||||
|
||||
const MODULES_PATH = path.join(__dirname, '/modules')
|
||||
|
||||
|
@ -60,10 +61,23 @@ module.exports = {
|
|||
cacheDirectory: true
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
test: /\.handlebars$/,
|
||||
loader: "handlebars-loader",
|
||||
options: {
|
||||
compat: true,
|
||||
knownHelpersOnly: false,
|
||||
runtimePath: 'handlebars/runtime',
|
||||
}
|
||||
}]
|
||||
},
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
handlebars: 'handlebars/dist/handlebars.min.js',
|
||||
jquery: path.join(__dirname, 'node_modules/jquery/dist/jquery'),
|
||||
}
|
||||
},
|
||||
// TODO
|
||||
// plugins: {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue