storj/web/storagenode/vue.config.js

40 lines
973 B
JavaScript
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
const path = require('path');
module.exports = {
publicPath: "/static/dist",
productionSourceMap: false,
parallel: true,
lintOnSave: false, // disables eslint for builds
configureWebpack: {
plugins: [],
},
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
2019-11-22 17:22:37 +00:00
.use('babel-loader')
.loader('babel-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
}
};