mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Add typescript dependency & tsconfig.json
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
63095e6c78
commit
0d788e0aec
3 changed files with 24 additions and 4 deletions
|
@ -357,7 +357,7 @@ module.exports = {
|
|||
|
||||
resolve: {
|
||||
modules: ['node_modules'],
|
||||
extensions: ['.js'],
|
||||
extensions: ['.js', '.ts', '.tsx'],
|
||||
alias: {
|
||||
codemirror: path.join(__dirname, 'node_modules/codemirror/codemirror.min.js'),
|
||||
inlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/inline-attachment.js'),
|
||||
|
@ -388,6 +388,9 @@ module.exports = {
|
|||
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.tsx?$/,
|
||||
use: [{ loader: 'awesome-typescript-loader' }]
|
||||
}, {
|
||||
test: /\.js$/,
|
||||
use: [{ loader: 'babel-loader' }],
|
||||
exclude: [/node_modules/, /public\/vendor/]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue