mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Add tslint-loader with pre enforced. Add to loader options plugin.
This commit is contained in:
@@ -15,7 +15,12 @@ export var commonPlugins = [
|
|||||||
|
|
||||||
// Loader options
|
// Loader options
|
||||||
new webpack.LoaderOptionsPlugin({
|
new webpack.LoaderOptionsPlugin({
|
||||||
|
options: {
|
||||||
|
tslint: {
|
||||||
|
emitErrors: false,
|
||||||
|
failOnHint: false
|
||||||
|
},
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
];
|
];
|
||||||
@@ -38,7 +43,13 @@ export var commonConfig = {
|
|||||||
{ test: /\.html$/, use: 'raw-loader' },
|
{ test: /\.html$/, use: 'raw-loader' },
|
||||||
{ test: /\.css$/, use: 'raw-loader' },
|
{ test: /\.css$/, use: 'raw-loader' },
|
||||||
{ test: /\.scss$/, use: ['raw-loader', 'sass-loader'] },
|
{ test: /\.scss$/, use: ['raw-loader', 'sass-loader'] },
|
||||||
{ test: /\.json$/, use: 'json-loader' }
|
{ test: /\.json$/, use: 'json-loader' },
|
||||||
|
{
|
||||||
|
enforce: 'pre',
|
||||||
|
test: /\.ts?$/,
|
||||||
|
use: 'tslint-loader',
|
||||||
|
exclude: /(node_modules)/,
|
||||||
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Reference in New Issue
Block a user