28 lines
559 B
JavaScript
28 lines
559 B
JavaScript
// Copyright 2019-2022 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
const webpack = require('webpack');
|
|
|
|
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',
|
|
],
|
|
}
|
|
);
|
|
|
|
config.externals = {
|
|
net: 'net',
|
|
};
|
|
|
|
return config;
|
|
};
|