Skip to content

Instantly share code, notes, and snippets.

@mischkl
mischkl / karma.conf.js
Last active Mar 10, 2017
karma-webpack
View karma.conf.js
var webpackConfig = require('./webpack.test.config');
module.exports = function (config) {
config.set({
basePath: './',
files: [
'app/index.ts',
'app/**/*.html',
'test/karma/test_index.ts',
'test/mock/**/*.json'
View webpack.config.js
module.exports = {
entry: {
index: './app/index'
},
output: {
path: __dirname + '/dist',
filename: '[name]-[hash].js'
},
resolve: {
extensions: ['.js', '.ts'],