-
-
Save c0debreaker/3f02a80db2a7b54a1a31d27054d61a0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var merge = require('webpack-merge'); | |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var webpackConfig = require('./webpack.config.js'); | |
webpackConfig = merge(webpackConfig, { | |
devtool: 'inline-source-map', | |
entry: { | |
ife: [ | |
'webpack/hot/dev-server', | |
'webpack-dev-server/client?http://localhost:8001' | |
], | |
test: [ | |
'webpack/hot/dev-server', | |
'webpack-dev-server/client?http://localhost:8001', | |
'mocha!' + path.resolve(__dirname, 'entry_points', 'test', 'index.js') | |
] | |
}, | |
plugins: [ | |
new webpack.HotModuleReplacementPlugin(), | |
new HtmlWebpackPlugin({ | |
title: 'Sample Tests', | |
filename: 'test.html', | |
inject: 'body', | |
chunks: ['test'] | |
}) | |
] | |
}); | |
webpackConfig.resolve.root.unshift( | |
path.resolve(__dirname, 'submodules', 'overrides') | |
); | |
module.exports = webpackConfig; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment