forked from mirrors/akkoma-fe
add html-webpack-plugin to karma config
This commit is contained in:
parent
36589f32d1
commit
d37caeeded
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
// var path = require('path')
|
// var path = require('path')
|
||||||
var merge = require('webpack-merge')
|
var merge = require('webpack-merge')
|
||||||
|
var HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
var baseConfig = require('../../build/webpack.base.conf')
|
var baseConfig = require('../../build/webpack.base.conf')
|
||||||
var utils = require('../../build/utils')
|
var utils = require('../../build/utils')
|
||||||
var webpack = require('webpack')
|
var webpack = require('webpack')
|
||||||
|
@ -24,6 +25,11 @@ var webpackConfig = merge(baseConfig, {
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': require('../../config/test.env')
|
'process.env': require('../../config/test.env')
|
||||||
|
}),
|
||||||
|
new HtmlWebpackPlugin({
|
||||||
|
filename: 'index.html',
|
||||||
|
template: 'index.html',
|
||||||
|
inject: true
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue