mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-14 09:08:32 +00:00
37 lines
801 B
JavaScript
37 lines
801 B
JavaScript
import StyleLintPlugin from 'stylelint-webpack-plugin'
|
|
|
|
import base from './nuxt.config.base.js'
|
|
|
|
export default Object.assign(base(), {
|
|
vue: {
|
|
config: {
|
|
productionTip: false,
|
|
devtools: true,
|
|
performance: true,
|
|
silent: false,
|
|
},
|
|
},
|
|
dev: true,
|
|
build: {
|
|
extend(config, ctx) {
|
|
if (ctx.isDev && ctx.isClient) {
|
|
config.module.rules.push({
|
|
enforce: 'pre',
|
|
test: /\.(js|vue)$/,
|
|
loader: 'eslint-loader',
|
|
exclude: /(node_modules)/,
|
|
options: {
|
|
configFile: '/baserow/web-frontend/.eslintrc.js',
|
|
},
|
|
})
|
|
}
|
|
config.node = { fs: 'empty' }
|
|
},
|
|
babel: { compact: true },
|
|
plugins: [
|
|
new StyleLintPlugin({
|
|
syntax: 'scss',
|
|
}),
|
|
],
|
|
},
|
|
})
|