e10eabe30b
Also pin all web/multinode dependencies, which was missing from the other change. Change-Id: Id78749076af6d80e59949efd73c1e10f5b52589c
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
productionSourceMap: false,
|
|
parallel: true,
|
|
lintOnSave: process.env.NODE_ENV !== 'production', // disables eslint for builds
|
|
assetsDir: "static",
|
|
configureWebpack: {
|
|
plugins: [],
|
|
},
|
|
chainWebpack: config => {
|
|
config.resolve.alias
|
|
.set('@', path.resolve('src'));
|
|
|
|
// Disable node_modules/.cache directory usage due to permissions.
|
|
// This is enabled by default in https://cli.vuejs.org/core-plugins/babel.html#caching.
|
|
config.module.rule('js').use('babel-loader')
|
|
.tap(options => Object.assign(options, {cacheDirectory: false}));
|
|
|
|
config
|
|
.plugin('html')
|
|
.tap(args => {
|
|
args[0].template = './index.html';
|
|
return args;
|
|
});
|
|
|
|
const svgRule = config.module.rule('svg');
|
|
svgRule.uses.clear();
|
|
svgRule.type(); // Disable webpack 5 asset management.
|
|
svgRule
|
|
.use('vue-loader')
|
|
.loader('vue-loader')
|
|
.end()
|
|
.use('vue-svg-loader')
|
|
.loader('vue-svg-loader');
|
|
},
|
|
};
|