22 строки
553 B
JavaScript
22 строки
553 B
JavaScript
module.exports = {
|
|
entry: './test/models.spec.ts',
|
|
output: {
|
|
path: __dirname + "/tmp",
|
|
filename: 'models.spec.js'
|
|
},
|
|
devtool: 'source-map',
|
|
resolve: {
|
|
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js']
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.map$/, loader: 'ignore-loader' },
|
|
{ test: /\.d.ts$/, loader: 'ignore-loader' },
|
|
{ test: /\.ts$/, exclude: /\.d.ts$/, loader: 'ts-loader' },
|
|
{ test: /\.json$/, loader: 'json-loader' }
|
|
]
|
|
},
|
|
ts: {
|
|
configFileName: "webpack.test.tsconfig.json"
|
|
}
|
|
} |