diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-07-01 22:08:01 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-07-01 22:08:01 +0300 |
commit | 1231cae02746d23c92a8460bc76fbf7de37f0164 (patch) | |
tree | 91f185018d95e289d6d7fa9d11e75bfa4dff150a /webpack.common.js | |
parent | c5f9f08119479a83e1594b106c8225a2376310ff (diff) |
Add stylelint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webpack.common.js b/webpack.common.js index 53480cf1b..3cd4f2b13 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -1,5 +1,6 @@ const path = require('path'); const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const StyleLintPlugin = require('stylelint-webpack-plugin'); module.exports = { @@ -52,7 +53,12 @@ module.exports = { } ] }, - plugins: [new VueLoaderPlugin()], + plugins: [ + new VueLoaderPlugin(), + new StyleLintPlugin({ + files: ['src/**/*.vue', 'src/**/*.scss', 'src/**/*.css'] + }) + ], resolve: { alias: { vue$: 'vue/dist/vue.esm.js' |