mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-10 07:37:30 +00:00
27 lines
537 B
JavaScript
27 lines
537 B
JavaScript
import merge from 'lodash.merge'
|
|
import StyleLintPlugin from 'stylelint-webpack-plugin'
|
|
|
|
import base from './nuxt.config.base.js'
|
|
|
|
const config = {
|
|
build: {
|
|
extend(config, ctx) {
|
|
if (ctx.isDev && ctx.isClient) {
|
|
config.module.rules.push({
|
|
enforce: 'pre',
|
|
test: /\.(js|vue)$/,
|
|
loader: 'eslint-loader',
|
|
exclude: /(node_modules)/
|
|
})
|
|
}
|
|
},
|
|
|
|
plugins: [
|
|
new StyleLintPlugin({
|
|
syntax: 'scss'
|
|
})
|
|
]
|
|
}
|
|
}
|
|
|
|
export default merge(base, config)
|