aboutsummaryrefslogtreecommitdiff
path: root/test/unit/karma.conf.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-12-03 14:40:51 -0500
committertaehoon <th.dev91@gmail.com>2019-12-03 14:40:51 -0500
commitd37caeeded0ebe90a2e922205eed94b5cc4fcca4 (patch)
tree9cd41f164ddedd7b7aa7289eb431e10f06153bb7 /test/unit/karma.conf.js
parent36589f32d1b2bfd8cb4a1f446909aa2c7287410f (diff)
add html-webpack-plugin to karma config
Diffstat (limited to 'test/unit/karma.conf.js')
-rw-r--r--test/unit/karma.conf.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/karma.conf.js b/test/unit/karma.conf.js
index 8af05c24..45d74f14 100644
--- a/test/unit/karma.conf.js
+++ b/test/unit/karma.conf.js
@@ -5,6 +5,7 @@
// var path = require('path')
var merge = require('webpack-merge')
+var HtmlWebpackPlugin = require('html-webpack-plugin')
var baseConfig = require('../../build/webpack.base.conf')
var utils = require('../../build/utils')
var webpack = require('webpack')
@@ -24,6 +25,11 @@ var webpackConfig = merge(baseConfig, {
plugins: [
new webpack.DefinePlugin({
'process.env': require('../../config/test.env')
+ }),
+ new HtmlWebpackPlugin({
+ filename: 'index.html',
+ template: 'index.html',
+ inject: true
})
]
})