signal-desktop/.storybook/webpack.config.js

34 lines
685 B
JavaScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2019-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2019-12-17 20:25:57 +00:00
module.exports = ({ config }) => {
config.entry.unshift(
'!!style-loader!css-loader!sanitize.css',
'!!style-loader!css-loader!typeface-inter'
);
config.module.rules.unshift(
{
test: /\.[jt]sx?$/,
2019-12-17 20:25:57 +00:00
loader: 'babel-loader',
exclude: /node_modules/,
2019-12-17 20:25:57 +00:00
},
{
test: /\.scss$/,
loaders: [
'style-loader',
'css-loader?modules=true&localsConvention=camelCaseOnly',
'sass-loader',
],
}
);
config.resolve.extensions = ['.tsx', '.ts', '.jsx', '.js'];
2020-09-28 23:46:31 +00:00
config.externals = {
net: 'net',
};
2019-12-17 20:25:57 +00:00
return config;
};