Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-07-01 22:08:01 +0300
committerJulius Härtl <jus@bitgrid.net>2019-07-01 22:08:01 +0300
commit1231cae02746d23c92a8460bc76fbf7de37f0164 (patch)
tree91f185018d95e289d6d7fa9d11e75bfa4dff150a /webpack.common.js
parentc5f9f08119479a83e1594b106c8225a2376310ff (diff)
Add stylelint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js8
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'