Closed g8up closed 4 years ago
Looks like tslint checks if the constructor returns a value and disallow that. You don't have to use new
, it's not necessary. You can just do
var directoryNamedWebpackPlugin = require("directory-named-webpack-plugin");
resolve: {
plugins: [
directoryNamedWebpackPlugin()
]
}
refer to https://webpack.js.org/configuration/configuration-languages/#typescript , I change my
webpack.conf.js
to typescriptwebpack.conf.ts
.An error come from tslint:
as I config like below: