Files
streamwall/webpack.base.config.js
Max Goodhart cf73dcf604 WIP attempt to wire up electron-forge
I wasn't able to get this fully working, IIRC; the challenge was getting
the webpack build for web stuff to happen reliably.
2024-08-19 17:50:50 -07:00

50 lines
930 B
JavaScript

module.exports = ({ babel }) => ({
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: babel,
},
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
{
test: /\.ttf$/,
loader: 'file-loader',
options: {
name: '[name].[ext]',
},
},
{
test: /\.svg$/,
loader: '@svgr/webpack',
options: {
replaceAttrValues: {
'#333': 'currentColor',
'#555': '{props.color}',
},
},
},
],
},
resolve: {
extensions: ['.jsx', '.js'],
alias: {
react: 'preact/compat',
'react-dom': 'preact/compat',
},
},
stats: {
colors: true,
modules: true,
reasons: true,
errorDetails: true,
warnings: true,
}
})