forked from microsoft/powerbi-models
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.test.config.js
More file actions
29 lines (28 loc) · 798 Bytes
/
webpack.test.config.js
File metadata and controls
29 lines (28 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const webpack = require('webpack'); //to access built-in plugins
module.exports = {
mode: 'none',
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: {
rules: [
{ test: /\.map$/, loader: 'ignore-loader' },
{ test: /\.d.ts$/, loader: 'ignore-loader' },
{ test: /\.ts$/, exclude: /\.d.ts$/, loader: 'ts-loader' },
{ test: /\.json$/, loader: 'json-loader' }
]
},
plugins: [
new webpack.LoaderOptionsPlugin({
ts: {
configFileName: "webpack.test.tsconfig.json"
}
})
],
}