tslint-loader with webpack 2.1.0-beta.25

后端 未结 3 943
-上瘾入骨i
-上瘾入骨i 2021-02-13 02:03

I have an angular2 Project that I compress/compile with webpack.

I use tslink loader with webpack so I have tslint related configuration in webpack.config.js

3条回答
  •  隐瞒了意图╮
    2021-02-13 03:01

    If you don't want to add a plugin, you can do something like this,

    module: {
      rules: [
        {
          enforce: 'pre',
          test: /\.ts$/,
          loader: 'tslint-loader?' + JSON.stringify({
            emitErrors: true,
            failOnHint: true
          })
        }
      ]
    }
    

提交回复
热议问题