|
|
@ -1,4 +1,5 @@
|
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
|
|
|
|
|
|
const path = require('path');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
const webpack = require('webpack');
|
|
|
|
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
|
|
|
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin');
|
|
|
|
const { root } = require('./utils');
|
|
|
|
const { root } = require('./utils');
|
|
|
@ -20,6 +21,9 @@ const build = async (type) => {
|
|
|
|
new FriendlyErrorsPlugin({
|
|
|
|
new FriendlyErrorsPlugin({
|
|
|
|
clearConsole: false,
|
|
|
|
clearConsole: false,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
|
|
|
|
new webpack.ProvidePlugin({
|
|
|
|
|
|
|
|
saslprep: path.resolve(__dirname, 'node_modules/saslprep/index.js'),
|
|
|
|
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const compiler = webpack(config);
|
|
|
|
const compiler = webpack(config);
|
|
|
|