Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Commit

Permalink
chore(build): Fix breaking changes in latest Webpack betas
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRyanDev committed Sep 27, 2016
1 parent 1ec737b commit 93aca6f
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions karma.conf.js
@@ -1,4 +1,5 @@
var path = require('path');
var webpack = require('webpack');

module.exports = function(karma) {
'use strict';
Expand Down Expand Up @@ -41,42 +42,43 @@ module.exports = function(karma) {
webpack: {
devtool: 'inline-source-map',
resolve: {
root: __dirname,
extensions: ['', '.ts', '.js']
extensions: ['.ts', '.js']
},
module: {
preLoaders: [
rules: [
{
test: /\.ts$/,
loader: 'tslint-loader',
enforce: 'pre',
exclude: [
/node_modules/
]
}
],
loaders: [
},
{
test: /\.ts?$/,
exclude: /(node_modules)/,
loader: 'ts'
}
],
postLoaders: [
},
{
test: /\.(js|ts)$/, loader: 'istanbul-instrumenter',
include: path.resolve(__dirname, 'src'),
enforce: 'post',
exclude: [
/\.(e2e|spec|bundle)\.ts$/,
/node_modules/
]
}
]
},
tslint: {
emitErrors: false,
failOnHint: false,
resourcePath: 'src'
}
plugins: [
new webpack.LoaderOptionsPlugin({
tslint: {
emitErrors: false,
failOnHint: false,
resourcePath: 'src'
}
})
]
}
});
};

0 comments on commit 93aca6f

Please sign in to comment.