storj/web/multinode/vue.config.js
Egon Elbre 5e24060b25 web/multinode: switch to eslint
tslint has been deprecated so it's nice to switch to eslint.
Currently this uses a minimal eslint, to get things up and running.

Change-Id: If0ca6413b534b0aa15f6130a0a809e002d817356
2021-08-03 13:00:15 +03:00

47 lines
1.2 KiB
JavaScript

// Copyright (C) 2020 Storj Labs, Inc.
// See LICENSE for copying information.
const path = require('path');
const StyleLintPlugin = require('stylelint-webpack-plugin');
module.exports = {
publicPath: '/static/dist',
productionSourceMap: false,
parallel: true,
configureWebpack: {
plugins: [
new StyleLintPlugin({
files: ['**/*.{vue,sss,less,scss,sass}'],
ignoreFiles: ['./node_modules/**'],
emitWarning: true,
}),
],
},
chainWebpack: config => {
config.output.chunkFilename('js/vendors_[hash].js');
config.output.filename('js/app_[hash].js');
config.resolve.alias
.set('@', path.resolve('src'));
config
.plugin('html')
.tap(args => {
args[0].template = './index.html';
return args;
});
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('babel-loader')
.loader('babel-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
},
};