Merge pull request #256 from dolanmiu/feat/webpack-ts

Use a typescript webpack config
This commit is contained in:
Dolan
2019-01-24 01:16:08 +01:00
committed by GitHub
3 changed files with 8 additions and 4 deletions

View File

@ -64,6 +64,7 @@
"@types/mocha": "^2.2.39",
"@types/request-promise": "^4.1.42",
"@types/sinon": "^4.3.1",
"@types/webpack": "^4.4.24",
"awesome-typescript-loader": "^3.4.1",
"chai": "^3.5.0",
"glob": "^7.1.2",

View File

@ -23,7 +23,8 @@
"tests",
"**/_*",
"demo",
"scripts"
"scripts",
"webpack.config.ts"
],
"typedocOptions": {
"mode": "file",

View File

@ -1,4 +1,6 @@
const path = require("path");
// tslint:disable:no-object-literal-type-assertion
import * as path from "path";
import { Configuration } from "webpack";
module.exports = {
entry: "./src/index.ts",
@ -27,10 +29,10 @@ module.exports = {
loader: "istanbul-instrumenter-loader",
enforce: "post",
exclude: [/node_modules/],
}
},
],
},
// Because docx is now targetting web
// target: 'node',
};
} as Configuration;