2022-06-06 20:48:02 -04:00
|
|
|
// Copyright 2019-2022 Signal Messenger, LLC
|
2020-10-30 15:34:04 -05:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-08-23 17:24:52 -04:00
|
|
|
const webpack = require('webpack');
|
|
|
|
|
2019-12-17 15:25:57 -05:00
|
|
|
module.exports = ({ config }) => {
|
|
|
|
config.entry.unshift(
|
|
|
|
'!!style-loader!css-loader!sanitize.css',
|
|
|
|
'!!style-loader!css-loader!typeface-inter'
|
|
|
|
);
|
|
|
|
|
|
|
|
config.module.rules.unshift(
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
loaders: [
|
|
|
|
'style-loader',
|
|
|
|
'css-loader?modules=true&localsConvention=camelCaseOnly',
|
|
|
|
'sass-loader',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2020-09-28 18:46:31 -05:00
|
|
|
config.externals = {
|
|
|
|
net: 'net',
|
|
|
|
};
|
|
|
|
|
2019-12-17 15:25:57 -05:00
|
|
|
return config;
|
|
|
|
};
|