lifenautjoe/webpack-starter-basic

Could you add stylelint?

landwire opened this issue · 2 comments

Could you add stylelint to PostCSS? Or show an example how to do it?

Hey @landwire, I won't add it to the starter as It's really a preference thing but have you tried the stylelint-webpack-plugin ?

$ npm install stylelint-webpack-plugin --save-dev
// webpack.dev.js
const StyleLintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new StyleLintPlugin(options),
  ],
  // ...
}

Let me know if this worked for you.

Cheers 👋

Closing for now as no response