Update test
This commit is contained in:
parent
179bcd7577
commit
58138d18f7
|
@ -7,11 +7,11 @@ module.exports = function (config) {
|
|||
basePath: "",
|
||||
frameworks: ["mocha"],
|
||||
files: [
|
||||
"test/test.js"
|
||||
"test/test.ts"
|
||||
],
|
||||
exclude: [],
|
||||
preprocessors: {
|
||||
"test/test.js": ["webpack"]
|
||||
"test/test.ts": ["webpack"]
|
||||
},
|
||||
webpack: {
|
||||
mode: "development",
|
||||
|
@ -20,8 +20,18 @@ module.exports = function (config) {
|
|||
{
|
||||
test: /\.png$/i,
|
||||
loader: "url-loader"
|
||||
},
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loader: "ts-loader",
|
||||
options: {
|
||||
transpileOnly: true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js", ".json"]
|
||||
}
|
||||
},
|
||||
webpackMiddleware: {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -60,6 +60,7 @@
|
|||
"rollup-plugin-license": "^0.7.0",
|
||||
"rollup-plugin-node-resolve": "^3.3.0",
|
||||
"rollup-plugin-uglify": "^4.0.0",
|
||||
"ts-loader": "^4.4.2",
|
||||
"tslint": "^5.10.0",
|
||||
"typescript": "^2.8.3",
|
||||
"uglify-es": "^3.3.10",
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
declare module "*.png" {
|
||||
let content: any;
|
||||
export default content;
|
||||
}
|
Loading…
Reference in New Issue