diff options
| author | taehoon <th.dev91@gmail.com> | 2019-12-03 14:40:51 -0500 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-12-03 14:40:51 -0500 |
| commit | d37caeeded0ebe90a2e922205eed94b5cc4fcca4 (patch) | |
| tree | 9cd41f164ddedd7b7aa7289eb431e10f06153bb7 /test | |
| parent | 36589f32d1b2bfd8cb4a1f446909aa2c7287410f (diff) | |
add html-webpack-plugin to karma config
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/karma.conf.js | 6 |
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 }) ] }) |
