Skip to content

Commit 96ff6a1

Browse files
committed
When any warning happens in tslint, throw error
1 parent 9441513 commit 96ff6a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

webpack.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ module.exports = {
8080
devtool: !production && 'source-map',
8181
module: {
8282
rules: [
83-
{enforce: 'pre', test: /\.ts?$/, loader: 'tslint-loader', exclude: /(node_modules|libs)/},
83+
{
84+
enforce: 'pre',
85+
test: /\.ts?$/,
86+
loader: 'tslint-loader',
87+
exclude: /(node_modules|libs)/,
88+
options: {emitErrors: true}
89+
},
8490
{test: /\.ts$/, loaders: ['ts-loader'], exclude: /(node_modules|libs)/},
8591
{test: /\.html$/, loader: 'raw-loader', exclude: /(node_modules|libs|dist|tsd)/},
8692
// stylesheets

0 commit comments

Comments
 (0)