tslint-loader with webpack 2.1.0-beta.25

后端 未结 3 946
-上瘾入骨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 02:40

    ok.. so I just needed to move the tslint definition under:

    plugins: [
        new LoaderOptionsPlugin({
            options: {
               tslint: {
                 ...
    

    and declared

    const LoaderOptionsPlugin = require("webpack/lib/LoaderOptionsPlugin");
    

提交回复
热议问题