README
stylelint-html-reporter-stzhang
HTML reporter for stylelint
Installation
npm install --save-dev stylelint-html-reporter-stzhang
Usage
const StylelintPlugin = require('stylelint-webpack-plugin');
const stylelintReporter = require('stylelint-html-reporter-stzhang');
module.exports = {
plugins: [
new StylelintPlugin({
files: ['**/*.{vue,htm,html,css,sss,less,scss,sass}'],
formatter: stylelintReporter()
})
]
};
Options
filename - (Optional) - Name of file to be generated
const StylelintPlugin = require('stylelint-webpack-plugin');
const stylelintReporter = require('stylelint-html-reporter-stzhang');
module.exports = {
plugins: [
new StylelintPlugin({
files: ['**/*.{vue,htm,html,css,sss,less,scss,sass}'],
formatter: stylelintReporter({
filename: path.join(config.build.assetsRoot, 'stylelint-report.html')
})
})
]
};