mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 11:22:49 +03:00
24 lines
552 B
JavaScript
24 lines
552 B
JavaScript
|
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
||
|
const merge = require('webpack-merge');
|
||
|
const common = require('./webpack.common.js');
|
||
|
|
||
|
|
||
|
module.exports = merge(common, {
|
||
|
module: {
|
||
|
rules: [{
|
||
|
test: /\.js$/,
|
||
|
exclude: /node_modules/,
|
||
|
loader: 'eslint-loader',
|
||
|
options: {
|
||
|
failOnError: true,
|
||
|
configFile: 'prod.eslintrc',
|
||
|
},
|
||
|
}],
|
||
|
},
|
||
|
plugins: [
|
||
|
new StyleLintPlugin({
|
||
|
files: '**/*.css',
|
||
|
}),
|
||
|
],
|
||
|
});
|