forked from Authenticator-Extension/Authenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.dev.js
28 lines (27 loc) · 866 Bytes
/
webpack.dev.js
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
const path = require("path");
const merge = require('webpack-merge');
const common = require('./webpack.config.js');
module.exports = merge(common, {
entry: {
test: "./src/test.ts",
},
module: {
rules: [
{
// Note that while it is possible to instrument .vue files, it does not produce correct output. Do not show *.vue in coverage reports.
loader: '@jsdevtools/coverage-istanbul-loader',
options: { esModules: true },
include: path.resolve(__dirname, 'src/'),
exclude: [
path.resolve(__dirname, 'src/test/'),
path.resolve(__dirname, 'src/test.ts'),
path.resolve(__dirname, 'src/mochaReporter.ts'),
path.resolve(__dirname, 'node_modules/'),
],
enforce: "post"
}
],
// to suppress mocha warnings
exprContextCritical: false,
}
});