Last fixes to unit test build configuration

This commit is contained in:
danielyxie
2019-05-09 19:51:56 -07:00
parent 74e72854d8
commit db5fdb1fcb
4 changed files with 11 additions and 2 deletions
+8
View File
@@ -1,3 +1,6 @@
/**
* Webpack configuration for building unit tests
*/
var path = require('path');
var webpack = require('webpack');
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -30,8 +33,13 @@ module.exports = (env, argv) => {
$: "jquery"
}),
],
entry: "./test/index.js",
target: "web",
devtool: "source-map",
output: {
path: path.resolve(__dirname, "./"),
filename: "test/test.bundle.js",
},
module: {
rules: [
{