mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
strip sinon, nise and bootstrap-vue icons
This commit is contained in:
parent
c0d6338eba
commit
435047cace
1 changed files with 15 additions and 1 deletions
|
|
@ -5,6 +5,8 @@ const nconf = require('nconf');
|
|||
const vueTemplateCompiler = require('vue-template-babel-compiler');
|
||||
const setupNconf = require('../server/libs/setupNconf');
|
||||
const pkg = require('./package.json');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
const configFile = path.join(path.resolve(__dirname, '../../config.json'));
|
||||
|
||||
|
|
@ -42,7 +44,19 @@ envVars
|
|||
|
||||
const webpackPlugins = [
|
||||
new webpack.DefinePlugin(envObject),
|
||||
new webpack.ContextReplacementPlugin(/moment[\\/]locale$/, /^\.\/(NOT_EXISTING)$/),
|
||||
new webpack.IgnorePlugin({
|
||||
checkResource(resource, context) {
|
||||
if (context.includes('sinon') || context.includes('nise')) {
|
||||
return true;
|
||||
}
|
||||
if (context.includes('bootstrap-vue')) {
|
||||
if (resource.includes('/icons')) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue