Commit ea63e0a5 by Johannes Edmeier

Enable caching for eslint

parent 0628dc3a
......@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"watch": "cross-env NODE_ENV=development webpack --watch",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules --bail",
"build": "cross-env NODE_ENV=production webpack --bail --hide-modules",
"test": "jest",
"test:watch": "jest --watch"
},
......
......@@ -59,7 +59,12 @@ const config = {
rules: [
{
test: /\.(js|vue)$/,
use: 'eslint-loader',
use: [{
loader: 'eslint-loader',
options: {
cache: true
}
}],
enforce: 'pre'
},
{
......@@ -86,7 +91,7 @@ const config = {
},
{
test: /\.js$/,
use: 'babel-loader',
use: ['babel-loader'],
include: [
resolve(__dirname, 'src/main/frontend'),
resolve(__dirname, 'node_modules/pretty-bytes')
......@@ -126,31 +131,37 @@ const config = {
oneOf: [
{
issuer: /\.vue$/,
loader: 'vue-svg-loader',
options: {
svgo: {
plugins: [
{inlineStyles: false}
]
}
},
use: [{
loader: 'vue-svg-loader',
options: {
svgo: {
plugins: [
{inlineStyles: false}
]
}
},
}]
},
{
loader: 'url-loader',
options: {
limit: 1000,
name: 'assets/img/[name].[ext]'
}
use: [{
loader: 'url-loader',
options: {
limit: 1000,
name: 'assets/img/[name].[ext]'
}
}]
}
]
},
{
test: /\.(png|jpg|jpeg|gif|eot|ttf|woff|woff2)(\?.+)?$/,
loader: 'url-loader',
options: {
limit: 1000,
name: 'assets/img/[name].[ext]'
}
use: [{
loader: 'url-loader',
options: {
limit: 1000,
name: 'assets/img/[name].[ext]'
}
}]
}
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment